prchakal
16th July 2013, 01:39
Hi,
Im connecting to my mysql database and i want know if the error type of db.lastError is equals to SqlError::ErrorType::NoError, but everything that i tried i got error.
Can anyone help me?
Something like this:
if (db.lastError().type() == QSqlError::ErrorType::NoError)
{
....
}
Im connecting to my mysql database and i want know if the error type of db.lastError is equals to SqlError::ErrorType::NoError, but everything that i tried i got error.
Can anyone help me?
Something like this:
if (db.lastError().type() == QSqlError::ErrorType::NoError)
{
....
}