diff options
author | Marco Bubke <[email protected]> | 2021-12-14 13:36:23 +0100 |
---|---|---|
committer | Marco Bubke <[email protected]> | 2021-12-14 16:50:10 +0000 |
commit | ad505aad5936fdf2eaf29dd91731e0900d1ab6d9 (patch) | |
tree | a6a7448a5f936991bb6f3de169afeb638ae4e54f /src/libs/sqlite/sqlstatementbuilder.cpp | |
parent | 90bb92f327d73b8d8b563acfcab746025949f73b (diff) |
Sqlite: Strict table supportv6.0.1
With Sqlite 3.37 strict tables are introduced:
https://www.sqlite.org/stricttables.html
The introduce strict column types. So you can not add a text to an
integer column anymore. Additionally they introduce the "any" column
which is a dynamic type.
Change-Id: I43c0410821aa154e7de83e24bd221a232f98e910
Reviewed-by: Tim Jenssen <[email protected]>
Reviewed-by: Qt CI Bot <[email protected]>
Diffstat (limited to 'src/libs/sqlite/sqlstatementbuilder.cpp')
-rw-r--r-- | src/libs/sqlite/sqlstatementbuilder.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/libs/sqlite/sqlstatementbuilder.cpp b/src/libs/sqlite/sqlstatementbuilder.cpp index 7a6cc1a81a3..b72d1d03281 100644 --- a/src/libs/sqlite/sqlstatementbuilder.cpp +++ b/src/libs/sqlite/sqlstatementbuilder.cpp @@ -176,26 +176,6 @@ bool SqlStatementBuilder::isBuild() const return m_sqlStatement.hasContent(); } -Utils::SmallString SqlStatementBuilder::columnTypeToString(ColumnType columnType) -{ - switch (columnType) { - case ColumnType::Numeric: - return " NUMERIC"; - case ColumnType::Integer: - return " INTEGER"; - case ColumnType::Real: - return " REAL"; - case ColumnType::Text: - return " TEXT"; - case ColumnType::Blob: - return " BLOB"; - case ColumnType::None: - return {}; - } - - Q_UNREACHABLE(); -} - void SqlStatementBuilder::generateSqlStatement() const { m_sqlStatement = m_sqlTemplate; |