summaryrefslogtreecommitdiff
path: root/src/interfaces/odbc/parse.c
diff options
context:
space:
mode:
authorHiroshi Inoue <inoue@tpf.co.jp>2001-09-11 06:39:20 +0000
committerHiroshi Inoue <inoue@tpf.co.jp>2001-09-11 06:39:20 +0000
commit0521051b0b443dd8a498802472059bdda21ebaf3 (patch)
treed4e4e0fce39e2d97e140f7422ed12a8f5ca2282f /src/interfaces/odbc/parse.c
parent7e99cea816bde08ba3bda2de4e972adc624a659e (diff)
Fix some multibyte related bugs.
Psqlodbc is 7.01.0007 now. Hiroshi Inoue
Diffstat (limited to 'src/interfaces/odbc/parse.c')
-rw-r--r--src/interfaces/odbc/parse.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/interfaces/odbc/parse.c b/src/interfaces/odbc/parse.c
index f6254cae947..0f0aff6e04e 100644
--- a/src/interfaces/odbc/parse.c
+++ b/src/interfaces/odbc/parse.c
@@ -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);