Replace deprecated QSqlError::number with ::nativeErrorCode