[ODBC-61] SQLGetInfo(SQL_FILE_USAGE) crashes connector Created: 2016-10-16  Updated: 2016-10-16  Resolved: 2016-10-16

Status: Closed
Project: MariaDB Connector/ODBC
Component/s: None
Affects Version/s: None
Fix Version/s: 3.0.0, 2.0.13

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


 Description   

To repeat:

ODBC_TEST(bug_odbc61)

{ SQLUSMALLINT info= 0xef; CHECK_DBC_RC(Connection, SQLGetInfo(Connection, SQL_FILE_USAGE, &info, 0, NULL)); return OK; }

To fix in
case SQL_FILE_USAGE:
MADB_SET_NUM_VAL(SQLUINTEGER, InfoValuePtr, SQL_FILE_NOT_SUPPORTED, StringLengthPtr);
SQLUINTEGER has to be changed to SQLUSMALLINT, that according to specs it must be



 Comments   
Comment by Lawrin Novitsky [ 2016-10-16 ]

The fix has been merged from the pull request

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