[Qt-interest] QSqlQuery and dotted column names

TP paratribulations at free.fr
Sun Oct 31 23:49:49 CET 2010


Thanks Scott,

Yes it works fine, but there may be several columns in the query with the 
same string on the right of the dot. So, it is a problem... IMHO, it is a 
bug in the SQLite driver.

Julien


Scott Aron Bloom wrote:

> Depending on the SQL driver, the column names returned may only return
> the string to the right of the dot.
> 
> Most likely query.record().indexOf( "firstname" ) works fine.
> 
> Scott

-- 
python -c "print ''.join([chr(154 - ord(c)) for c in '*9(9&(18%.\
9&1+,\'Z4(55l4('])"

"When a distinguished but elderly scientist states that something is
possible, he is almost certainly right. When he states that something is
impossible, he is very probably wrong." (first law of AC Clarke)




More information about the Qt-interest-old mailing list