diff options
author | drh <drh@noemail.net> | 2018-04-13 15:14:33 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2018-04-13 15:14:33 +0000 |
commit | c8a0c90b62bb4dc1782b079d9e7d315f49d8bd9a (patch) | |
tree | 71f3839c2c5ba0301f5f188ffdc49502484a3e40 /src/sqliteInt.h | |
parent | d5af54207db43d5f5329ad545685a9dc71609c56 (diff) | |
download | sqlite-c8a0c90b62bb4dc1782b079d9e7d315f49d8bd9a.tar.gz sqlite-c8a0c90b62bb4dc1782b079d9e7d315f49d8bd9a.zip |
Get the ON CONFLICT DO NOTHING form of upsert working by mapping it
into INSERT OR IGNORE.
FossilOrigin-Name: d07f05e98bb9ce0f9b46db159d9df161b7499d6face6a5299ecd2d00a94fb8d0
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r-- | src/sqliteInt.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h index 7bbe255bc..d611f4913 100644 --- a/src/sqliteInt.h +++ b/src/sqliteInt.h @@ -2047,13 +2047,12 @@ struct FKey { #define OE_Fail 3 /* Stop the operation but leave all prior changes */ #define OE_Ignore 4 /* Ignore the error. Do not do the INSERT or UPDATE */ #define OE_Replace 5 /* Delete existing record, then do INSERT or UPDATE */ - -#define OE_Restrict 6 /* OE_Abort for IMMEDIATE, OE_Rollback for DEFERRED */ -#define OE_SetNull 7 /* Set the foreign key value to NULL */ -#define OE_SetDflt 8 /* Set the foreign key value to its default */ -#define OE_Cascade 9 /* Cascade the changes */ - -#define OE_Default 10 /* Do whatever the default action is */ +#define OE_Update 6 /* Process as a DO UPDATE in an upsert */ +#define OE_Restrict 7 /* OE_Abort for IMMEDIATE, OE_Rollback for DEFERRED */ +#define OE_SetNull 8 /* Set the foreign key value to NULL */ +#define OE_SetDflt 9 /* Set the foreign key value to its default */ +#define OE_Cascade 10 /* Cascade the changes */ +#define OE_Default 11 /* Do whatever the default action is */ /* |