--- sql/pgsql/parser3pgsql.C 2004/03/29 07:56:28 1.18.2.2 +++ sql/pgsql/parser3pgsql.C 2004/03/26 13:29:40 1.19 @@ -7,7 +7,7 @@ 2001.07.30 using PgSQL 7.1.2 */ -static const char *RCSId="$Id: parser3pgsql.C,v 1.18.2.2 2004/03/29 07:56:28 paf Exp $"; +static const char *RCSId="$Id: parser3pgsql.C,v 1.19 2004/03/26 13:29:40 paf Exp $"; #include "config_includes.h" @@ -58,7 +58,7 @@ static char *lsplit(char **string_ref, c return result; } -static void toupper_str(char *out, const char *in, size_t size) { +static void toupper(char *out, const char *in, size_t size) { while(size--) *out++=(char)toupper(*in++); } @@ -133,7 +133,7 @@ public: if(*key) { if(char *value=lsplit(key, '=')) { if(strcmp(key, "ClientCharset" ) == 0) { - toupper_str(value, value, strlen(value)); + toupper(value, value, strlen(value)); connection.cstrClientCharset=value; } else if(strcasecmp(key, "charset")==0) { // left for backward compatibility, consider using ClientCharset cstrBackwardCompAskServerToTranscode=value;