diff options
author | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2023-02-26 20:32:21 +0100 |
---|---|---|
committer | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2023-07-23 16:49:15 +0200 |
commit | e532933a2a9ff0219f0179880e05c95e0ec5e19d (patch) | |
tree | 7c2eab8afe3f86d67b90a8b03ea44a766f137984 /src/sql/kernel/qsqlresult.h | |
parent | 4a7023f5b4c45682f344e5185e82e518b653368a (diff) |
SQL/PSQL: Handle jsonb operators in prepared queries
Add an option to disable handling of positional binding so jsonb
operators are not screwed up
[ChangeLog][QtSql][QSqlQuery] Add setEnablePositionalBinding() to be
able to disable positional binding.
Fixes: QTBUG-96636
Change-Id: I428a9d3b10274b97292ab86a74d9b3971d6f10e9
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
Diffstat (limited to 'src/sql/kernel/qsqlresult.h')
-rw-r--r-- | src/sql/kernel/qsqlresult.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sql/kernel/qsqlresult.h b/src/sql/kernel/qsqlresult.h index 1135caf765..2307c12b6f 100644 --- a/src/sql/kernel/qsqlresult.h +++ b/src/sql/kernel/qsqlresult.h @@ -102,6 +102,8 @@ protected: virtual void detachFromResultSet(); virtual void setNumericalPrecisionPolicy(QSql::NumericalPrecisionPolicy policy); QSql::NumericalPrecisionPolicy numericalPrecisionPolicy() const; + void enablePositionalBinding(bool enable); + bool positionalBindingEnabled() const; virtual bool nextResult(); void resetBindCount(); // HACK |