void QODBCDriverPrivate::checkSchemaUsage(){ SQLRETURN r; SQLUINTEGER val; r = SQLGetInfo(hDbc, SQL_SCHEMA_USAGE, (SQLPOINTER) &val, sizeof(val), NULL); if (r == SQL_SUCCESS || r == SQL_SUCCESS_WITH_INFO) useSchema = (val != 0);}
int i = 0;while(sqlQuery->next()){ qDebug() << ++i;}Выводит 1, 2, 3 ... 425
QSqlRecord rec = sqlQuery->record();int column = rec.indexOf( "ID" );while( sqlQuery->next() ){ sqlQuery->value( column ).toString(); // ошибка сегментации. qDebug() << ++i;}