aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/odbc/bind.c
diff options
context:
space:
mode:
authorHiroshi Inoue <inoue@tpf.co.jp>2001-06-22 05:59:43 +0000
committerHiroshi Inoue <inoue@tpf.co.jp>2001-06-22 05:59:43 +0000
commita8dbe428de8f8c11a047c441c9f1b5b5433b0115 (patch)
tree6940c6aa8c0a5be92a116264a7d5ff67954a80b5 /src/interfaces/odbc/bind.c
parentd8d9ed931e8a2370d3995c40af2eb3bda18aecb0 (diff)
downloadpostgresql-a8dbe428de8f8c11a047c441c9f1b5b5433b0115.tar.gz
postgresql-a8dbe428de8f8c11a047c441c9f1b5b5433b0115.zip
Change SQLPrimaryKeys() so that it detects the primary key
other than tablename_pkey.
Diffstat (limited to 'src/interfaces/odbc/bind.c')
-rw-r--r--src/interfaces/odbc/bind.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/interfaces/odbc/bind.c b/src/interfaces/odbc/bind.c
index fc1f4b5c212..906dfdcc9c4 100644
--- a/src/interfaces/odbc/bind.c
+++ b/src/interfaces/odbc/bind.c
@@ -59,6 +59,7 @@ SQLBindParameter(
SC_log_error(func, "", NULL);
return SQL_INVALID_HANDLE;
}
+ SC_clear_error(stmt);
if (stmt->parameters_allocated < ipar)
{
@@ -292,6 +293,7 @@ SQLDescribeParam(
SC_log_error(func, "", NULL);
return SQL_INVALID_HANDLE;
}
+ SC_clear_error(stmt);
if ((ipar < 1) || (ipar > stmt->parameters_allocated))
{
@@ -366,6 +368,7 @@ SQLNumParams(
SC_log_error(func, "", NULL);
return SQL_INVALID_HANDLE;
}
+ SC_clear_error(stmt);
if (pcpar)
*pcpar = 0;