diff options
author | Marco Bubke <marco.bubke@qt.io> | 2021-12-14 13:36:23 +0100 |
---|---|---|
committer | Marco Bubke <marco.bubke@qt.io> | 2021-12-14 16:50:10 +0000 |
commit | ad505aad5936fdf2eaf29dd91731e0900d1ab6d9 (patch) | |
tree | a6a7448a5f936991bb6f3de169afeb638ae4e54f /tests/unit/unittest/sqlstatementbuilder-test.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 <tim.jenssen@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'tests/unit/unittest/sqlstatementbuilder-test.cpp')
-rw-r--r-- | tests/unit/unittest/sqlstatementbuilder-test.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/tests/unit/unittest/sqlstatementbuilder-test.cpp b/tests/unit/unittest/sqlstatementbuilder-test.cpp index 1e24faeded..806939fcdb 100644 --- a/tests/unit/unittest/sqlstatementbuilder-test.cpp +++ b/tests/unit/unittest/sqlstatementbuilder-test.cpp @@ -135,16 +135,6 @@ TEST(SqlStatementBuilder, ClearBinding) ASSERT_THROW(sqlStatementBuilder.sqlStatement(), SqlStatementBuilderException); } -TEST(SqlStatementBuilder, ColumnType) -{ - ASSERT_THAT(SqlStatementBuilder::columnTypeToString(ColumnType::Numeric), " NUMERIC"); - ASSERT_THAT(SqlStatementBuilder::columnTypeToString(ColumnType::Integer), " INTEGER"); - ASSERT_THAT(SqlStatementBuilder::columnTypeToString(ColumnType::Real), " REAL"); - ASSERT_THAT(SqlStatementBuilder::columnTypeToString(ColumnType::Text), " TEXT"); - ASSERT_THAT(SqlStatementBuilder::columnTypeToString(ColumnType::Blob), " BLOB"); - ASSERT_TRUE(SqlStatementBuilder::columnTypeToString(ColumnType::None).isEmpty()); -} - TEST(SqlStatementBuilder, SqlStatementFailure) { SqlStatementBuilder sqlStatementBuilder("SELECT $columns FROM $table"); |