QSqlQuery: Specify documentation of named placeholders
Named placeholders can only contain characters in the range of [a-zA-Z0-9_] but this was not documented anywhere. Task-number: QTBUG-69775 Change-Id: I5c4eff7674b1fc04cef60e7d7f44cd87414ffbe9 Reviewed-by: Paul Wicking <paul.wicking@qt.io> Reviewed-by: Andy Shaw <andy.shaw@qt.io>bb10
parent
d18444fbff
commit
ee5573c6fb
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue