Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit19f947e

Browse files
author
Byron Nikolaidis
committed
driver v06-40-0007
1 parent51f62ea commit19f947e

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

‎src/interfaces/odbc/environ.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ int status;
111111
strcpy(szSqlState,"00000");
112112
// just information that is returned, no error
113113
break;
114-
caseSTMT_EXEC_ERROR:
114+
caseSTMT_BAD_ERROR:
115115
strcpy(szSqlState,"08S01");
116116
// communication link failure
117117
break;
@@ -195,6 +195,7 @@ int status;
195195
strcpy(szSqlState,"S1011");
196196
break;
197197

198+
caseSTMT_EXEC_ERROR:
198199
default:
199200
strcpy(szSqlState,"S1000");
200201
// also a general error

‎src/interfaces/odbc/statement.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ QueryInfo qi;
875875
*/
876876
}
877877
else {
878-
self->errornumber=STMT_EXEC_ERROR;
878+
self->errornumber=STMT_BAD_ERROR;
879879
self->errormsg="Error while executing the query";
880880
}
881881

‎src/interfaces/odbc/statement.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ typedef enum {
7474
#defineSTMT_VALUE_OUT_OF_RANGE 24
7575
#defineSTMT_OPERATION_INVALID 25
7676
#defineSTMT_PROGRAM_TYPE_OUT_OF_RANGE 26
77+
#defineSTMT_BAD_ERROR 27
7778

7879
/* statement types */
7980
enum {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp