From: stephan Date: Thu, 19 May 2022 21:56:50 +0000 (+0000) Subject: #if'd out the the '.cd' and '.clone' commands for WASM builds. X-Git-Tag: version-3.39.0~129 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1c0dcec4c5703bd5ac4b209304d7a32fa01e15da;p=thirdparty%2Fsqlite.git #if'd out the the '.cd' and '.clone' commands for WASM builds. FossilOrigin-Name: fa391868dd626ffdb220bed6834d0a10c7336f0fc4ca56055147784de1a4f99d --- diff --git a/manifest b/manifest index ea0147b700..42336e1a43 100644 --- a/manifest +++ b/manifest @@ -1,5 +1,5 @@ -C fiddle:\sconsolidated\stwo\sduplicate\sCSS\srules.\sInternal\sdoc\stypo\sfix. -D 2022-05-19T18:14:34.923 +C #if'd\sout\sthe\sthe\s'.cd'\sand\s'.clone'\scommands\sfor\sWASM\sbuilds. +D 2022-05-19T21:56:50.043 F .fossil-settings/empty-dirs dbb81e8fc0401ac46a1491ab34a7f2c7c0452f2f06b54ebb845d024ca8283ef1 F .fossil-settings/ignore-glob 35175cdfcf539b2318cb04a9901442804be81cd677d8b889fcc9149c21f239ea F LICENSE.md df5091916dbb40e6e9686186587125e1b2ff51f022cc334e886c19a0e9982724 @@ -559,7 +559,7 @@ F src/random.c 097dc8b31b8fba5a9aca1697aeb9fd82078ec91be734c16bffda620ced7ab83c F src/resolve.c a4eb3c617027fd049b07432f3b942ea7151fa793a332a11a7d0f58c9539e104f F src/rowset.c ba9515a922af32abe1f7d39406b9d35730ed65efab9443dc5702693b60854c92 F src/select.c 74060a09f66c0c056f3c61627e22cb484af0bbfa29d7d14dcf17c684742c15de -F src/shell.c.in cc3e19b2d2eefbadc4139b016c097d6478eae01d14eca993368ee5cff8820fff +F src/shell.c.in 3316815dd4aba4ad151f9a46d540a24197e5b1d9b91eb9a6a2822ea6863b0fac F src/sqlite.h.in d15c307939039086adca159dd340a94b79b69827e74c6d661f343eeeaefba896 F src/sqlite3.rc 5121c9e10c3964d5755191c80dd1180c122fc3a8 F src/sqlite3ext.h a988810c9b21c0dc36dc7a62735012339dc76fc7ab448fb0792721d30eacb69d @@ -1959,8 +1959,8 @@ F vsixtest/vsixtest.tcl 6a9a6ab600c25a91a7acc6293828957a386a8a93 F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0 -P 75b4f574089c4969d2f2c3615a52029e98515e36390c530cdf63f15f4f687a1d -R fb2d54ddd3f554e5c22b5659dde450fa +P d3175a793fb2d1ac9ecfd7a7c3b1627fe583effcd37740206a11b115f099d521 +R 42d0ca5c67ceea270880218da3bcbfc1 U stephan -Z 5ad105357a05d0508e7ab1b6ce2c1d25 +Z b82e2305c283c356a7fd95759eb9583d # Remove this line to create a well-formed Fossil manifest. diff --git a/manifest.uuid b/manifest.uuid index 3e02de6bdf..41cc92e704 100644 --- a/manifest.uuid +++ b/manifest.uuid @@ -1 +1 @@ -d3175a793fb2d1ac9ecfd7a7c3b1627fe583effcd37740206a11b115f099d521 \ No newline at end of file +fa391868dd626ffdb220bed6834d0a10c7336f0fc4ca56055147784de1a4f99d \ No newline at end of file diff --git a/src/shell.c.in b/src/shell.c.in index 9a0859293b..6950dcf4ee 100644 --- a/src/shell.c.in +++ b/src/shell.c.in @@ -4282,10 +4282,14 @@ static const char *(azHelp[]) = { #endif ".bail on|off Stop after hitting an error. Default OFF", ".binary on|off Turn binary output on or off. Default OFF", +#ifndef SQLITE_SHELL_WASM_MODE ".cd DIRECTORY Change the working directory to DIRECTORY", +#endif ".changes on|off Show number of rows changed by SQL", ".check GLOB Fail if output since .testcase does not match", +#ifndef SQLITE_SHELL_WASM_MODE ".clone NEWDB Clone data into NEWDB from the existing database", +#endif ".connection [close] [#] Open or close an auxiliary database connection", ".databases List names and files of attached databases", ".dbconfig ?op? ?val? List or change sqlite3_db_config() options", @@ -8274,6 +8278,7 @@ static int do_meta_command(char *zLine, ShellState *p){ test_breakpoint(); }else +#ifndef SQLITE_SHELL_WASM_MODE if( c=='c' && strcmp(azArg[0],"cd")==0 ){ failIfSafeMode(p, "cannot run .cd in safe mode"); if( nArg==2 ){ @@ -8293,6 +8298,7 @@ static int do_meta_command(char *zLine, ShellState *p){ rc = 1; } }else +#endif /* !defined(SQLITE_SHELL_WASM_MODE) */ if( c=='c' && n>=3 && strncmp(azArg[0], "changes", n)==0 ){ if( nArg==2 ){ @@ -8328,6 +8334,7 @@ static int do_meta_command(char *zLine, ShellState *p){ sqlite3_free(zRes); }else +#ifndef SQLITE_SHELL_WASM_MODE if( c=='c' && strncmp(azArg[0], "clone", n)==0 ){ failIfSafeMode(p, "cannot run .clone in safe mode"); if( nArg==2 ){ @@ -8337,6 +8344,7 @@ static int do_meta_command(char *zLine, ShellState *p){ rc = 1; } }else +#endif /* !defined(SQLITE_SHELL_WASM_MODE) */ if( c=='c' && strncmp(azArg[0], "connection", n)==0 ){ if( nArg==1 ){