aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/odbc/statement.c
diff options
context:
space:
mode:
authorHiroshi Inoue <inoue@tpf.co.jp>2002-08-01 03:07:50 +0000
committerHiroshi Inoue <inoue@tpf.co.jp>2002-08-01 03:07:50 +0000
commit7dfc7e9e8cf7e480948b68e7fbb12577e18e84e4 (patch)
treeee67e41f0668736b54c25f45d55c46e5a7532956 /src/interfaces/odbc/statement.c
parentce7565ab91100747d250ef67d72af5c1b01150d4 (diff)
downloadpostgresql-7dfc7e9e8cf7e480948b68e7fbb12577e18e84e4.tar.gz
postgresql-7dfc7e9e8cf7e480948b68e7fbb12577e18e84e4.zip
1) Improve the handling of the queries like (select ..) union (select ..)
whose first non-space character is '('. 2) Handle Insert .. () VALUES ().
Diffstat (limited to 'src/interfaces/odbc/statement.c')
-rw-r--r--src/interfaces/odbc/statement.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interfaces/odbc/statement.c b/src/interfaces/odbc/statement.c
index 391eb73bcbc..66dbb0a41d5 100644
--- a/src/interfaces/odbc/statement.c
+++ b/src/interfaces/odbc/statement.c
@@ -439,7 +439,7 @@ statement_type(char *statement)
int i;
/* ignore leading whitespace in query string */
- while (*statement && isspace((unsigned char) *statement))
+ while (*statement && (isspace((unsigned char) *statement) || *statement == '('))
statement++;
for (i = 0; Statement_Type[i].s; i++)