Bug #43855 conversion flags not complete
Submitted: 25 Mar 2009 11:47 Modified: 24 Mar 2010 15:18
Reporter: Tonci Grgin Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / ODBC Severity:S2 (Serious)
Version:5.1 OS:Any
Assigned to: Bogdan Degtyariov
Triage: D2 (Serious)

[25 Mar 2009 11:47] Tonci Grgin
Description:
Looking into driver/info.c Ln 133+ it is apparent conversions are missing for many types. Please add them as per ODBC specs.

How to repeat:
For example, unicode (W) conversions are missing:
SQLGetInfo:
	In:ConnectionHandle = 0x0000000000779EC0, InfoType = SQL_CONVERT_VARCHAR=70, InfoValuePtr = 0x000000000013F030, BufferLength = 600,	StringLengthPtr = 0x0000000000131DD0, Information Value Type = SQL_C_SLONG=-16
	Return:	SQL_SUCCESS=0
	Out:*InfoValuePtr = 0x0003F3FF = SQL_CVT_CHAR | SQL_CVT_NUMERIC | SQL_CVT_DECIMAL | SQL_CVT_INTEGER | SQL_CVT_SMALLINT | SQL_CVT_FLOAT | SQL_CVT_REAL | SQL_CVT_DOUBLE | SQL_CVT_VARCHAR | SQL_CVT_LONGVARCHAR | SQL_CVT_BIT | SQL_CVT_TINYINT | SQL_CVT_BIGINT | SQL_CVT_DATE | SQL_CVT_TIME | SQL_CVT_TIMESTAMP, *StringLengthPtr = 4
[11 Mar 2010 18:27] Lawrenty Novitsky
the patch has been pushed as revision #870. It has chances to go into 5.1.7 release.
[24 Mar 2010 15:18] Tony Bedford
An entry has been added to the 5.1.7 changelog:

Conversions for many types were missing from the file driver/info.c.