From 1f9683b7b2884e8a10604fd61b7b2e55f5809290 Mon Sep 17 00:00:00 2001 From: 2401_83578735 Date: Wed, 10 Sep 2025 16:42:51 +0800 Subject: [PATCH] fix: not suppot pragma key Signed-off-by: 2401_83578735 --- patch/0012-Not-support-pragma-key.patch | 16 ++++++++++++++++ ...atch => 0013-Bugfix-on-current-version.patch} | 0 2 files changed, 16 insertions(+) create mode 100644 patch/0012-Not-support-pragma-key.patch rename patch/{0012-Bugfix-on-current-version.patch => 0013-Bugfix-on-current-version.patch} (100%) diff --git a/patch/0012-Not-support-pragma-key.patch b/patch/0012-Not-support-pragma-key.patch new file mode 100644 index 0000000..4e191b9 --- /dev/null +++ b/patch/0012-Not-support-pragma-key.patch @@ -0,0 +1,16 @@ +diff --git a/src/shell.c b/src/shell.c +index cedf118..e4cbd07 100644 +--- a/src/shell.c ++++ b/src/shell.c +@@ -28388,6 +28388,10 @@ static int process_input(ShellState *p){ + if( p->in==0 && stdin_is_interactive ) oputz("\n"); + break; + } ++ if((sqlite3_strlike("%pragma%key%=%", zLine, 0)==0)){ ++ printf("not support pragma key\n"); ++ break; ++ } + if( seenInterrupt ){ + if( p->in!=0 ) break; + seenInterrupt = 0; + \ No newline at end of file diff --git a/patch/0012-Bugfix-on-current-version.patch b/patch/0013-Bugfix-on-current-version.patch similarity index 100% rename from patch/0012-Bugfix-on-current-version.patch rename to patch/0013-Bugfix-on-current-version.patch -- Gitee