Skip to content

Commit 19f947e

Browse files
author
Byron Nikolaidis
committed
driver v06-40-0007
1 parent 51f62ea commit 19f947e

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-
case STMT_EXEC_ERROR:
114+
case STMT_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+
case STMT_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
#define STMT_VALUE_OUT_OF_RANGE 24
7575
#define STMT_OPERATION_INVALID 25
7676
#define STMT_PROGRAM_TYPE_OUT_OF_RANGE 26
77+
#define STMT_BAD_ERROR 27
7778

7879
/* statement types */
7980
enum {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy