[Qt-interest] Interbase and QSqlQuery::prepare issues

Bill King bill.king at nokia.com
Fri Oct 23 03:21:02 CEST 2009


On 10/22/2009 03:58 PM, ext Adam M wrote:
> Bill King wrote:
>   
>> I have tst_QSqlQuery::prepare_bind_exec() autotest passing against
>> Interbase 6, 7.5, & firebird 1.5 & 2.1
>> It pretty much covers most scenarios of parameter binding.
>>
>> If you can provide me with a testcase, or some way to recreate the
>> issue, I can look at it in further detail.
>>     
> The funny thing is, I have tried to recreate the bug here using exact
> same query and the binding seems to work correctly... at least for now.
>
>
> I haven't looked into the source code for the Interbase driver, but is
> the placeholder (using ? placeholder) done in Interbase driver proper or
> emulated in Qt?
>
> - Adam
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>   
In the interbase case, named parameters are translated to question
marks, and passed to the interbase driver code. So the anser is a bit of
both, but in your case, interbase driver (passed onto interbase proper).

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091023/cb9b25cf/attachment.html 


More information about the Qt-interest-old mailing list