I'm using Linux / Qt 4.5.0.
Most sql work is going fine except for this piece of code where I'm using QSqlQueryModel for the first time:
Qt Code:
model->setQuery(query);To copy to clipboard, switch view to plain text mode
model->setQuery(query) blows out; top of stack is:
mysql_stmt_num_rows() is presumably in a mysql library somewhere so I'm guessing there is an issue between QSql and mysql.Thread [1] (Suspended: Signal 'SIGSEGV' received. Description: Segmentation fault.)
36 mysql_stmt_num_rows() 0x046afaa7
35 QSqlQuery::size() /media/OneTouch4-Main/internet/downloads/QT4.5Preview/qt-x11-opensource-src-4.5.0-snapshot-20081217/src/sql/kernel/qsqlquery.cpp:717 0x00232cfd
34 QSqlQueryModel::setQuery() /media/OneTouch4-Main/internet/downloads/QT4.5Preview/qt-x11-opensource-src-4.5.0-snapshot-20081217/src/sql/models/qsqlquerymodel.cpp:347 0x00246acf
...
(The query "SELECT name FROM videosource" works fine in other situations.)
Anyone seen this kind of problem before?
Bookmarks