diff options
Diffstat (limited to 'src/sql/kernel')
-rw-r--r-- | src/sql/kernel/qsqlquery.cpp | 4 | ||||
-rw-r--r-- | src/sql/kernel/qtsqlglobal.h | 1 | ||||
-rw-r--r-- | src/sql/kernel/qtsqlglobal_p.h | 1 |
3 files changed, 5 insertions, 1 deletions
diff --git a/src/sql/kernel/qsqlquery.cpp b/src/sql/kernel/qsqlquery.cpp index 628bfa1880..daadcb8a0e 100644 --- a/src/sql/kernel/qsqlquery.cpp +++ b/src/sql/kernel/qsqlquery.cpp @@ -942,10 +942,12 @@ void QSqlQuery::clear() query. See the \l{QSqlQuery examples}{Detailed Description} for examples. - Portability note: Some databases choose to delay preparing a query + Portability notes: Some databases choose to delay preparing a query until it is executed the first time. In this case, preparing a syntactically wrong query succeeds, but every consecutive exec() will fail. + When the database does not support named placeholders directly, + the placeholder can only contain characters in the range [a-zA-Z0-9_]. For SQLite, the query string can contain only one statement at a time. If more than one statement is given, the function returns \c false. diff --git a/src/sql/kernel/qtsqlglobal.h b/src/sql/kernel/qtsqlglobal.h index d421adc84b..ec79e8da1e 100644 --- a/src/sql/kernel/qtsqlglobal.h +++ b/src/sql/kernel/qtsqlglobal.h @@ -41,6 +41,7 @@ #define QTSQLGLOBAL_H #include <QtCore/qglobal.h> +#include <QtSql/qtsql-config.h> QT_BEGIN_NAMESPACE diff --git a/src/sql/kernel/qtsqlglobal_p.h b/src/sql/kernel/qtsqlglobal_p.h index ab45f6cd38..78a2461257 100644 --- a/src/sql/kernel/qtsqlglobal_p.h +++ b/src/sql/kernel/qtsqlglobal_p.h @@ -53,5 +53,6 @@ #include <QtSql/qtsqlglobal.h> #include <QtCore/private/qglobal_p.h> +#include <QtSql/private/qtsql-config_p.h> #endif // QTSQLGLOBAL_P_H |