aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/sqlite/sqliteglobal.h
diff options
context:
space:
mode:
authorMarco Bubke <marco.bubke@qt.io>2021-12-14 13:36:23 +0100
committerMarco Bubke <marco.bubke@qt.io>2021-12-14 16:50:10 +0000
commitad505aad5936fdf2eaf29dd91731e0900d1ab6d9 (patch)
treea6a7448a5f936991bb6f3de169afeb638ae4e54f /src/libs/sqlite/sqliteglobal.h
parent90bb92f327d73b8d8b563acfcab746025949f73b (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 'src/libs/sqlite/sqliteglobal.h')
-rw-r--r--src/libs/sqlite/sqliteglobal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libs/sqlite/sqliteglobal.h b/src/libs/sqlite/sqliteglobal.h
index b910a05a81..f8a13e0a97 100644
--- a/src/libs/sqlite/sqliteglobal.h
+++ b/src/libs/sqlite/sqliteglobal.h
@@ -40,6 +40,7 @@
namespace Sqlite {
enum class ColumnType : char { None, Numeric, Integer, Real, Text, Blob };
+enum class StrictColumnType : char { Any, Integer, Int, Real, Text, Blob };
enum class ConstraintType : char { NoConstraint, PrimaryKey, Unique, ForeignKey };