Skip to content

Commit

Permalink
Change requested in ODBC-152 - SQL_DATA_TYPE value
Browse files Browse the repository at this point in the history
casted to SIGNED in SQLColumns query. Other wise its type(returned by
server) is MEDIUM_BLOB. Even though at the moment it's not quite clear
what is the problem, the change looks reasonable.
  • Loading branch information
lawrinn committed Sep 18, 2018
1 parent bfb78c0 commit a9e55d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ma_statement.h
Original file line number Diff line number Diff line change
Expand Up @@ -249,13 +249,13 @@ SQLRETURN MADB_DoExecute (MADB_Stmt *Stmt, BOOL ExecDirect);
"NUMERIC_SCALE DECIMAL_DIGITS, 10 NUM_PREC_RADIX,"\
XSTR(SQL_NULLABLE_UNKNOWN) " NULLABLE,"\
"NULL REMARKS, NULL COLUMN_DEF,"\
"CASE"\
"CAST(CASE"\
" WHEN DATA_TYPE = 'date' THEN " XSTR(SQL_DATE)\
" WHEN DATA_TYPE = 'time' THEN " XSTR(SQL_TIME)\
" WHEN DATA_TYPE = 'datetime' THEN " XSTR(SQL_DATETIME)\
" WHEN DATA_TYPE = 'timestamp' THEN " XSTR(SQL_TIMESTAMP)\
" ELSE @dt "\
"END AS SQL_DATA_TYPE, NULL SQL_DATETIME_SUB,"\
"END AS SIGNED) AS SQL_DATA_TYPE, NULL SQL_DATETIME_SUB,"\
"CHARACTER_OCTET_LENGTH CHAR_OCTET_LENGTH, "\
"ORDINAL_POSITION, 'YES' IS_NULLABLE FROM INFORMATION_SCHEMA.PARAMETERS "

Expand Down

0 comments on commit a9e55d1

Please sign in to comment.