Diff for /sql/pgsql/parser3pgsql.C between versions 1.18.2.2 and 1.19

version 1.18.2.2, 2004/03/29 07:56:28 version 1.19, 2004/03/26 13:29:40
Line 58  static char *lsplit(char **string_ref, c Line 58  static char *lsplit(char **string_ref, c
     return result;      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--)          while(size--)
                 *out++=(char)toupper(*in++);                  *out++=(char)toupper(*in++);
 }  }
Line 133  public: Line 133  public:
                                 if(*key) {                                  if(*key) {
                                         if(char *value=lsplit(key, '=')) {                                          if(char *value=lsplit(key, '=')) {
                                                 if(strcmp(key, "ClientCharset" ) == 0) {                                                  if(strcmp(key, "ClientCharset" ) == 0) {
                                                         toupper_str(value, value, strlen(value));                                                          toupper(value, value, strlen(value));
                                                         connection.cstrClientCharset=value;                                                          connection.cstrClientCharset=value;
                                                 } else if(strcasecmp(key, "charset")==0) { // left for backward compatibility, consider using ClientCharset                                                  } else if(strcasecmp(key, "charset")==0) { // left for backward compatibility, consider using ClientCharset
                                                         cstrBackwardCompAskServerToTranscode=value;                                                          cstrBackwardCompAskServerToTranscode=value;

Removed from v.1.18.2.2  
changed lines
  Added in v.1.19


E-mail: