summaryrefslogtreecommitdiffstats
path: root/src/sql/drivers/odbc/qsql_odbc.h
diff options
context:
space:
mode:
authorMark Brand <mabrand@mabrand.nl>2012-06-05 13:50:03 +0200
committerQt by Nokia <qt-info@nokia.com>2012-06-06 13:23:51 +0200
commitfc15a1d5e2cb064df7b6e7b9e821e9db20a91b85 (patch)
tree45355e4d5426f63c158353b0dea18457c76dbf6c /src/sql/drivers/odbc/qsql_odbc.h
parent637ecd571f10bbab36b3321edb0479d79a542ddb (diff)
QSqlResult: replace virtual hooks with virtual functions
Instead of virtual functions which would have broken binary compatibility, virtual_hook() was used to implement the virtual functionality. Now, since the step to Qt 5.0 allows breaking binary compatibility, we take the opporunity to simplify the code using real virtual functions. SetNumericalPrecision --> setNumericalPrecisionPolicy() NextResult --> nextResult() DetachFromResultSet --> detachFromResultSet() BatchOperation --> execBatch() Task-number: QTBUG-25252 Change-Id: Idd3a870f876d8b8a7457559d5f31ec2073786a75 Reviewed-by: Bill King <bill.king@nokia.com> Reviewed-by: Harald Fernengel <harald.fernengel@nokia.com>
Diffstat (limited to 'src/sql/drivers/odbc/qsql_odbc.h')
-rw-r--r--src/sql/drivers/odbc/qsql_odbc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sql/drivers/odbc/qsql_odbc.h b/src/sql/drivers/odbc/qsql_odbc.h
index a89ce0f9b3..6ae65a0805 100644
--- a/src/sql/drivers/odbc/qsql_odbc.h
+++ b/src/sql/drivers/odbc/qsql_odbc.h
@@ -104,6 +104,7 @@ protected:
int numRowsAffected();
QSqlRecord record() const;
void virtual_hook(int id, void *data);
+ void detachFromResultSet();
bool nextResult();
private: