1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-24 00:23:06 +03:00

Fix some multibyte related bugs.

Psqlodbc is 7.01.0007 now.

Hiroshi Inoue
This commit is contained in:
Hiroshi Inoue
2001-09-11 06:39:20 +00:00
parent 7e99cea816
commit 0521051b0b
4 changed files with 21 additions and 3 deletions

View File

@@ -616,7 +616,14 @@ in_expr = TRUE;
/* lower case table name */
for (ptr = ti[stmt->ntab]->name; *ptr; ptr++)
{
#ifdef MULTIBYTE
if ((unsigned char) *ptr >= 0x80)
ptr++;
else
#endif /* MULTIBYTE */
*ptr = tolower((unsigned char) *ptr);
}
}
mylog("got table = '%s'\n", ti[stmt->ntab]->name);