aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <>2022-11-17 01:24:06 +0000
committerdrh <>2022-11-17 01:24:06 +0000
commit841c98e14ca76ed96661583c4739629f0b2e876b (patch)
tree6fbb644efbee1211ffdb4d7abcd24caf19dba318 /src
parenta872466c8ed936e2ad68a8a2ba717a7bda8689bf (diff)
downloadsqlite-841c98e14ca76ed96661583c4739629f0b2e876b.tar.gz
sqlite-841c98e14ca76ed96661583c4739629f0b2e876b.zip
Raise an error if an attempt is made to compile the CLI with the
SQLITE_OMIT_COMPLETE option, since sqlite3_complete() really is necessary for the CLI to operate sanely. FossilOrigin-Name: a119a9e2ade4eac5feb1aa885c15b83e725f87386351de99d3abb49656219d50
Diffstat (limited to 'src')
-rw-r--r--src/shell.c.in8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/shell.c.in b/src/shell.c.in
index f16478977..6b038495f 100644
--- a/src/shell.c.in
+++ b/src/shell.c.in
@@ -10959,13 +10959,11 @@ static int line_is_command_terminator(char *zLine){
}
/*
-** We need a default sqlite3_complete() implementation to use in case
-** the shell is compiled with SQLITE_OMIT_COMPLETE. The default assumes
-** any arbitrary text is a complete SQL statement. This is not very
-** user-friendly, but it does seem to work.
+** The CLI needs a working sqlite3_complete() to work properly. So error
+** out of the build if compiling with SQLITE_OMIT_COMPLETE.
*/
#ifdef SQLITE_OMIT_COMPLETE
-#define sqlite3_complete(x) 1
+# error the CLI application is imcompatable with SQLITE_OMIT_COMPLETE.
#endif
/*