diff options
author | Andy Shaw <andy.shaw@qt.io> | 2020-07-31 12:48:22 +0200 |
---|---|---|
committer | Andy Shaw <andy.shaw@qt.io> | 2020-08-11 22:13:13 +0200 |
commit | 295e98915d933970e56c65510b35f21e848f9af1 (patch) | |
tree | 3e7c61a90704d550c6d64cb780d357469d9e65ff /src/sql/kernel/qsqldriver.h | |
parent | e790af0e0a030dea597bbc9489170b5ba1cf9e46 (diff) |
Introduce maximumIdentifierLength to return database limits for names
Since Interbase/Firebird has a limit for column and table names then
this function can be used by QSqlRelationalTableModel to make sure that
the aliases created are within that limit.
Change-Id: I0cb1c65b34befcb3690ccad3f081556dd2691344
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/sql/kernel/qsqldriver.h')
-rw-r--r-- | src/sql/kernel/qsqldriver.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sql/kernel/qsqldriver.h b/src/sql/kernel/qsqldriver.h index 31de63be15..361a11bec3 100644 --- a/src/sql/kernel/qsqldriver.h +++ b/src/sql/kernel/qsqldriver.h @@ -130,7 +130,7 @@ public: QSql::NumericalPrecisionPolicy numericalPrecisionPolicy() const; DbmsType dbmsType() const; - + virtual int maximumIdentifierLength(IdentifierType type) const; public Q_SLOTS: virtual bool cancelQuery(); |