aboutsummaryrefslogtreecommitdiff
path: root/src/sqliteInt.h
diff options
context:
space:
mode:
authordrh <>2022-12-15 20:03:08 +0000
committerdrh <>2022-12-15 20:03:08 +0000
commit00d6b2755fe197558019dc5ccf4e26740a7356a5 (patch)
tree1e987cc476a88b49ec9614a277a20ac40272040d /src/sqliteInt.h
parent118b53bd21d588441d7d4cb3b416d9c135a69bbd (diff)
downloadsqlite-00d6b2755fe197558019dc5ccf4e26740a7356a5.tar.gz
sqlite-00d6b2755fe197558019dc5ccf4e26740a7356a5.zip
Create a new affinity called FLEXNUM that works like NUMERIC except that it
never tries to convert integer to real or real to integer. The affinity is only used internally - it is not possible to create a table column with this affinity. This affinity is used on subqueries and views that are built off of a compound SELECT and where the datatype is controlled by a CAST expression. dbsqlfuzz c9ee6f9a0a8b8fefb02cf69de2a8b67ca39525c8 FossilOrigin-Name: 44135d6ea84f7ba6b36549954b38a8bc048d5ffea5a9779e35950afa4eb2dfb2
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r--src/sqliteInt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index c012451a3..8c97699d9 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -2239,6 +2239,7 @@ struct CollSeq {
#define SQLITE_AFF_NUMERIC 0x43 /* 'C' */
#define SQLITE_AFF_INTEGER 0x44 /* 'D' */
#define SQLITE_AFF_REAL 0x45 /* 'E' */
+#define SQLITE_AFF_FLEXNUM 0x46 /* 'F' */
#define sqlite3IsNumericAffinity(X) ((X)>=SQLITE_AFF_NUMERIC)