diff options
author | Bill King <bill.king@nokia.com> | 2009-08-31 05:07:12 (GMT) |
---|---|---|
committer | Bill King <bill.king@nokia.com> | 2009-08-31 05:08:42 (GMT) |
commit | 8d636ab46ccfc3ab37083f947a7c184df47ddcb9 (patch) | |
tree | 371a126bd7fffd28c5810e984d05577381f0e56b /src/sql/kernel | |
parent | 6f1ff3ec69cc6365d61fccf80e97f9afa317395d (diff) | |
download | Qt-8d636ab46ccfc3ab37083f947a7c184df47ddcb9.zip Qt-8d636ab46ccfc3ab37083f947a7c184df47ddcb9.tar.gz Qt-8d636ab46ccfc3ab37083f947a7c184df47ddcb9.tar.bz2 |
Adds ability to open sqlite databases readonly.
Changes opening of sqlite to open_v2, and adds a new connection option.
Reviewed-by: Justin McPherson
Diffstat (limited to 'src/sql/kernel')
-rw-r--r-- | src/sql/kernel/qsqldatabase.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sql/kernel/qsqldatabase.cpp b/src/sql/kernel/qsqldatabase.cpp index d155c03..16bd05b 100644 --- a/src/sql/kernel/qsqldatabase.cpp +++ b/src/sql/kernel/qsqldatabase.cpp @@ -1263,6 +1263,7 @@ QSqlRecord QSqlDatabase::record(const QString& tablename) const \i \list \i QSQLITE_BUSY_TIMEOUT + \i QSQLITE_OPEN_READONLY \endlist \i |