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

Commitbc9bab0

Browse files
author
Byron Nikolaidis
committed
Mini update to fix SQLGetInfo to work properly (truncation, NULL)
1 parent5df20d4 commitbc9bab0

File tree

6 files changed

+258
-350
lines changed

6 files changed

+258
-350
lines changed

‎src/interfaces/odbc/connection.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ typedef enum {
6363
#defineCONN_UNABLE_TO_LOAD_DLL 212
6464

6565
#defineCONN_OPTION_VALUE_CHANGED 213
66+
#defineCONN_VALUE_OUT_OF_RANGE 214
6667

6768
/* Conn_status defines */
6869
#defineCONN_IN_AUTOCOMMIT 0x01

‎src/interfaces/odbc/environ.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,9 @@ int status;
187187
strcpy(szSqlState,"S1109");
188188
break;
189189

190+
caseSTMT_VALUE_OUT_OF_RANGE:
191+
strcpy(szSqlState,"22003");
192+
break;
190193
default:
191194
strcpy(szSqlState,"S1000");
192195
// also a general error
@@ -238,6 +241,10 @@ int status;
238241
caseCONN_OPTION_VALUE_CHANGED:
239242
strcpy(szSqlState,"01S02");
240243
break;
244+
caseSTMT_TRUNCATED:
245+
strcpy(szSqlState,"01004");
246+
// data truncated
247+
break;
241248
caseCONN_INIREAD_ERROR:
242249
strcpy(szSqlState,"IM002");
243250
// data source not found
@@ -277,6 +284,12 @@ int status;
277284
caseSTMT_NOT_IMPLEMENTED_ERROR:
278285
strcpy(szSqlState,"S1C00");
279286
break;
287+
288+
caseCONN_VALUE_OUT_OF_RANGE:
289+
caseSTMT_VALUE_OUT_OF_RANGE:
290+
strcpy(szSqlState,"22003");
291+
break;
292+
280293
default:
281294
strcpy(szSqlState,"S1000");
282295
// general error

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp