miraks
17th November 2008, 14:54
Hi,
I have a sqlite database containing trigger to manage constraints.
(see attached file)
If I try to violate a constraint with sqlite3, the right error message is returned:
sqlite> delete from unit;
SQL error: delete on table unit violates foreign key constraint fkd_unit_unit_rc_unit_id_id :)
But, if I try to violate a constraint with QT API (QSqlQuery), this error message is returned by QSqlError::lastError():
constraint failed Impossible d'extraire la ligne :(
Do you know how to do to retrieve the right error message with QT API ?
In advance, thank you.
I have a sqlite database containing trigger to manage constraints.
(see attached file)
If I try to violate a constraint with sqlite3, the right error message is returned:
sqlite> delete from unit;
SQL error: delete on table unit violates foreign key constraint fkd_unit_unit_rc_unit_id_id :)
But, if I try to violate a constraint with QT API (QSqlQuery), this error message is returned by QSqlError::lastError():
constraint failed Impossible d'extraire la ligne :(
Do you know how to do to retrieve the right error message with QT API ?
In advance, thank you.