[ODBC-15] "S1096 Invalid information type" returned from SQLGetInfoW SQL_ODBC_API_CONFORMANCE Created: 2014-10-17  Updated: 2015-05-30  Resolved: 2014-10-22

Status: Closed
Project: MariaDB Connector/ODBC
Component/s: None
Affects Version/s: 1.0.0
Fix Version/s: 1.0.0

Type: Bug Priority: Major
Reporter: Julian Ladisch Assignee: Lawrin Novitsky
Resolution: Fixed Votes: 0
Labels: None
Environment:

Windows 7 Professional SP1, ODBC Management Studio 2.0.0.0, MySQL 5.5.40-0ubuntu0.14.04.1


Attachments: File odbc15.diff    

 Description   

MariaDB ODBC Driver returns "Invalid information type" when asked for SQL_ODBC_API_CONFORMANCE. MySQL Connector/ODBC returns "SQL_OAC_LEVEL1".

Output from ODBC trace:

ODBCStudio f8c-f08 ENTER SQLGetInfoW
HDBC 0x0012F050
UWORD 9 <SQL_ODBC_API_CONFORMANCE>
PTR 0x0281D164
SWORD 2
SWORD * 0x0281D160

ODBCStudio f8c-f08 EXIT SQLGetInfoW with return code -1 (SQL_ERROR)
HDBC 0x0012F050
UWORD 9 <SQL_ODBC_API_CONFORMANCE>
PTR 0x0281D164
SWORD 2
SWORD * 0x0281D160

DIAG [S1096] Invalid information type (0)

ODBCStudio f8c-f08 ENTER SQLErrorW
HENV 0x001274F8
HDBC 0x0012F050
HSTMT 0x00000000
WCHAR * 0x0281D0F4
SDWORD * 0x0281CC7C
WCHAR * 0x0281CC90
SWORD 511
SWORD * 0x0281CC84

ODBCStudio f8c-f08 EXIT SQLErrorW with return code 0 (SQL_SUCCESS)
HENV 0x001274F8
HDBC 0x0012F050
HSTMT 0x00000000
WCHAR * 0x0281D0F4 [ 5] "S1096"
SDWORD * 0x0281CC7C (0)
WCHAR * 0x0281CC90 [ 24] "Invalid information type"
SWORD 511
SWORD * 0x0281CC84 (24)



 Comments   
Comment by Lawrin Novitsky [ 2014-10-22 ]

The fix & the testcase have been pushed to repository as rev#40

Comment by Lawrin Novitsky [ 2014-10-22 ]

The patch diff file

Generated at Thu Feb 08 03:25:36 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.