Hi. I have a database in Interbase 7.5, that has a non standard primary key ID CHAR(12) in table MAIN_TABLE. This is not a string, but a 96-bits number, that can contains a zero byte within it. When I'm trying to bindValue to QSqlQuery like this:
q.prepare( "select * from main_table where id = :id" );
q.
bindValue( ":id",
QByteArray( char12_id,
12 ) );
QSqlQuery q( db );
q.prepare( "select * from main_table where id = :id" );
q.bindValue( ":id", QByteArray( char12_id, 12 ) );
To copy to clipboard, switch view to plain text mode
where char12_id is a char[12], that was get from main_table earlier (with module, created by Builder's IBX), I'm receiving wrong results or nothing.
The database is not mine, that's why I can't modify it (unfortunatly)
P.S. Sorry for my English - it's not my "mother tongue"
instruments: Qt 4.6.2, MSVC 2008, Interbase 7.5
Bookmarks