[Qt-interest] QODBC bug!

Bill King bill.king at nokia.com
Fri Aug 6 01:15:49 CEST 2010


On 07/06/2010 06:25 PM, ext Roland Tollenaar wrote:
> Hi,
>
> I have discovered a bug in Qodbc.
>
> Using an advantage database (yes its a rare one:) ) any field of type
> character of length 1 never gets pulled through to the qsqlquery used to
>    do a select call on it.
>
> I.e. if the field(0) has a value "C" for example,
> query.value(0).toString() will return "".
>
> All other conversion also show that there is nothing in the value.
>
> Using the same ODBC driver for the advantage database the correct values
> get pulled into all other applications (excel for example).
>
> So the problem is definitely in Qt and most probably in QODBC.
>
> We are using qt 4.5.2 is there any way I can check the version of QODBC
> we are using to find out whether there is a later version.
>
> Is there a manner to use later qodbc dreivers without updating to a
> later version of Qt?
>
> Any help appreciated, this problem is serious for us. There are no
> obvious workarounds.
>
> Kind regards,
>
> Roland
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>    
I suggest trying a later version of Qt. There was a fair amount of work 
done on the odbc driver, the string retrieval section, definitely.

You can't upgrade the driver without upgrading the qt version, plugins 
are meant to be tied to the version of qt they are compiled with. There 
is NO bincompat guarantee on plugins.

Lastly, have a bug? File a report! ;)

Your bug tho, does look very much like one that would be fixed by some 
of the changes that I'm fairly sure went into the 4.6 code branch.

-- 
Bill King, Software Engineer
Qt Development Frameworks, Nokia Pty Ltd
Brisbane Office




More information about the Qt-interest-old mailing list