OSDN Git Service
(root)
/
pg-rex
/
syncrep.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
010d1af
)
Fix a bug in SQLError().
author
Hiroshi Inoue
<inoue@tpf.co.jp>
Thu, 4 Apr 2002 23:29:16 +0000
(23:29 +0000)
committer
Hiroshi Inoue
<inoue@tpf.co.jp>
Thu, 4 Apr 2002 23:29:16 +0000
(23:29 +0000)
src/interfaces/odbc/environ.c
patch
|
blob
|
history
diff --git
a/src/interfaces/odbc/environ.c
b/src/interfaces/odbc/environ.c
index
4fdfe74
..
6de5c50
100644
(file)
--- a/
src/interfaces/odbc/environ.c
+++ b/
src/interfaces/odbc/environ.c
@@
-317,7
+317,7
@@
PGAPI_ConnectError( HDBC hdbc,
SWORD msglen;
mylog("**** PGAPI_ConnectError: hdbc=%u <%d>\n", hdbc, cbErrorMsgMax);
- if (RecNumber != 1)
+ if (RecNumber != 1
&& RecNumber != -1
)
return SQL_NO_DATA_FOUND;
if (cbErrorMsgMax < 0)
return SQL_ERROR;
@@
-443,7
+443,7
@@
PGAPI_EnvError( HENV henv,
int status;
mylog("**** PGAPI_EnvError: henv=%u <%d>\n", henv, cbErrorMsgMax);
- if (RecNumber != 1)
+ if (RecNumber != 1
&& RecNumber != -1
)
return SQL_NO_DATA_FOUND;
if (cbErrorMsgMax < 0)
return SQL_ERROR;