Ye, you are right. there is function. Sorry for stupid question.![]()
Ye, you are right. there is function. Sorry for stupid question.![]()
Hy a_white,
One more question. Does QOpenOCCI plug'in support row count??? By QT documentation it returns with function query->size(), I get -1.
the size is not supported on driver.
qDB.driver()->hasFeature(QSqlDriver::QuerySize); returns 0.
I don't want to use while(query->next()) tmp++; to get row count.
QSQlQueryModel returns not the right count, and I don't know why ()Qt Code:
Model = new QModel(this); Model->setQuery(query); tmp = Model->rowCount();To copy to clipboard, switch view to plain text mode
tmp = 255 in fact rows is 419
Any suggestions...
thanks.
Last edited by foggy-mind; 12th March 2009 at 09:16.
btw, Qt 4.5.0 opensource already contains OCI driver.![]()
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
I find the answer why QSqlQueryModel function count() returns not the real count of rows. The answer is there QSqlQueryModel::fetchMore()
And QOCI plugin don't report back the size of a query too.
Bookmarks