diff options
author | Andy Shaw <andy.shaw@qt.io> | 2019-09-22 11:58:34 +0200 |
---|---|---|
committer | Andy Shaw <andy.shaw@qt.io> | 2019-09-24 08:42:11 +0200 |
commit | fdae0ccc5f624a1b30d4a57fa3d4b69a00f013d2 (patch) | |
tree | b0fe2c3a7c2b72f515dbf05c0aa600438959ca1d /src/sql | |
parent | f72dfdb9afd09ff0d0e0a966d251f8cd56f40968 (diff) | |
download | qtbase-fdae0ccc5f624a1b30d4a57fa3d4b69a00f013d2.tar.gz |
Fix connection string code snippet for ODBC on Windows
Fixes: QTBUG-15133
Change-Id: I86d77aec039fdfaf262ad056c944c7cfc30e0041
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'src/sql')
-rw-r--r-- | src/sql/doc/snippets/code/src_sql_kernel_qsqldatabase.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sql/doc/snippets/code/src_sql_kernel_qsqldatabase.cpp b/src/sql/doc/snippets/code/src_sql_kernel_qsqldatabase.cpp index b3112e76ff..f09315435e 100644 --- a/src/sql/doc/snippets/code/src_sql_kernel_qsqldatabase.cpp +++ b/src/sql/doc/snippets/code/src_sql_kernel_qsqldatabase.cpp @@ -79,7 +79,7 @@ QSqlDatabase db = QSqlDatabase::addDatabase("MYDRIVER"); //! [3] ... db = QSqlDatabase::addDatabase("QODBC"); -db.setDatabaseName("DRIVER={Microsoft Access Driver (*.mdb)};FIL={MS Access};DBQ=myaccessfile.mdb"); +db.setDatabaseName("DRIVER={Microsoft Access Driver (*.mdb, *.accdb)};FIL={MS Access};DBQ=myaccessfile.mdb"); if (db.open()) { // success! } |