*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/commands/define.c,v 1.18 1997/11/26 04:50:28 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/commands/define.c,v 1.19 1997/12/05 01:12:40 momjian Exp $
*
* DESCRIPTION
* The "DefineFoo" routines take the parse tree and pick out the
--------------------------------------------------------------------------*/
int i;
- for (i = 0; i < NAMEDATALEN && input[i] != '\0'; ++i)
+ for (i = 0; i < NAMEDATALEN && input[i]; ++i)
output[i] = tolower(input[i]);
output[i] = '\0';
--------------------------------------------------------------------------*/
int i;
- for (i = 0; i < NAMEDATALEN && input[i] != '\0'; ++i)
+ for (i = 0; i < NAMEDATALEN && input[i]; ++i)
output[i] = tolower(input[i]);
output[i] = '\0';
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.31 1997/11/30 23:05:36 thomas Exp $
+ * $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.32 1997/12/05 01:12:53 momjian Exp $
*
*-------------------------------------------------------------------------
*/
int i;
ScanKeyword *keyword;
- for(i = strlen(yytext); i >= 0; i--)
+ for(i = 0; yytext[i]; i++)
if (isupper(yytext[i]))
yytext[i] = tolower(yytext[i]);
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.118 1997/11/30 17:46:01 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.119 1997/12/05 01:13:11 momjian Exp $
*
*-------------------------------------------------------------------------
*/
}
else
{
- for (i = strlen(table); i >= 0; i--)
+ for (i = 0; table[i]; i++)
if (isupper(table[i]))
table[i] = tolower(table[i]);
}
}
else
{
- for (i = strlen(object); i >= 0; i--)
+ for (i = 0; object[i]; i++)
if (isupper(object[i]))
object[i] = tolower(object[i]);
}
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.52 1997/12/04 20:32:35 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.53 1997/12/05 01:13:21 momjian Exp $
*
*-------------------------------------------------------------------------
*/
*(conn->dbName + strlen(conn->dbName) - 1) = '\0';
}
else
- for (i = strlen(conn->dbName); i >= 0; i--)
+ for (i = 0; conn->dbName[i]; i++)
if (isupper(conn->dbName[i]))
conn->dbName[i] = tolower(conn->dbName[i]);
}
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.43 1997/12/04 23:28:20 thomas Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.44 1997/12/05 01:13:24 momjian Exp $
*
*-------------------------------------------------------------------------
*/
*(field_case + strlen(field_case) - 1) = '\0';
}
else
- for (i = 0; i < strlen(field_case); i++)
+ for (i = 0; field_case[i]; i++)
if (isupper(field_case[i]))
field_case[i] = tolower(field_case[i]);