From: drh <> Date: Wed, 8 Oct 2025 09:52:52 +0000 (+0000) Subject: The ".dbtotxt" command in the CLI should not fail if the database is X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=55085a2cc28c94033b083aa54d4178a4a39fc493;p=thirdparty%2Fsqlite.git The ".dbtotxt" command in the CLI should not fail if the database is uninitialized. It should instead be a no-op. FossilOrigin-Name: 2818ef64d9233095b065101392768071fbd95729cde060b954f48ea821fc549a --- diff --git a/manifest b/manifest index 00bfb52f27..8b2853a589 100644 --- a/manifest +++ b/manifest @@ -1,5 +1,5 @@ -C Function\sname\sdoc\stypo\sfixes\sfor\ssqlite3_source_id()\s(sic.). -D 2025-10-08T02:05:15.100 +C The\s".dbtotxt"\scommand\sin\sthe\sCLI\sshould\snot\sfail\sif\sthe\sdatabase\sis\nuninitialized.\s\sIt\sshould\sinstead\sbe\sa\sno-op. +D 2025-10-08T09:52:52.459 F .fossil-settings/binary-glob 61195414528fb3ea9693577e1980230d78a1f8b0a54c78cf1b9b24d0a409ed6a x F .fossil-settings/empty-dirs dbb81e8fc0401ac46a1491ab34a7f2c7c0452f2f06b54ebb845d024ca8283ef1 F .fossil-settings/ignore-glob 35175cdfcf539b2318cb04a9901442804be81cd677d8b889fcc9149c21f239ea @@ -736,7 +736,7 @@ F src/random.c 606b00941a1d7dd09c381d3279a058d771f406c5213c9932bbd93d5587be4b9c F src/resolve.c f8d1d011aba0964ff1bdccd049d4d2c2fec217efd90d202a4bb775e926b2c25d F src/rowset.c 8432130e6c344b3401a8874c3cb49fefe6873fec593294de077afea2dce5ec97 F src/select.c b95181711d59c36d9789e67f76c4cfec64b99f9629a50be5e6566e117b87d957 -F src/shell.c.in cb057f99dbc549ba2524b81243076d1f438403f70a7ed761ce778ae59028c0c6 +F src/shell.c.in a82b960fa88e655fa5c3500f7c18f008ce5e340abafada82cf98190150a99ef0 F src/sqlite.h.in 7032dcc3ee97d1b504a77b987653941c0decfb34158bc3cfe4eb8cb7b7164fad F src/sqlite3.rc 015537e6ac1eec6c7050e17b616c2ffe6f70fca241835a84a4f0d5937383c479 F src/sqlite3ext.h 3f0c4ed6934e7309a61c6f3c30f70a30a5b869f785bb3d9f721a36c5e4359126 @@ -2170,8 +2170,8 @@ F tool/version-info.c 33d0390ef484b3b1cb685d59362be891ea162123cea181cb8e6d2cf6dd F tool/warnings-clang.sh bbf6a1e685e534c92ec2bfba5b1745f34fb6f0bc2a362850723a9ee87c1b31a7 F tool/warnings.sh 1ad0169b022b280bcaaf94a7fa231591be96b514230ab5c98fbf15cd7df842dd F tool/win/sqlite.vsix deb315d026cc8400325c5863eef847784a219a2f -P dcfc0164a95eddb5e924c606850fe2015e8f2f516d36b380cbb79d6bdfe034fc -R 4989c53fd550ff2dd58d7dd7eb41885a -U stephan -Z 03d124d7f3adf3e0af6f1fd43fb74e9c +P 03c3f12853163ce542239a98bdf8e830db2fc7ccf1edb2f9c783fcfdca858879 +R a249efafd2f986e4ce644c42ac90ab37 +U drh +Z 55f6af74a4a07ed4e6b262fa5cca530e # Remove this line to create a well-formed Fossil manifest. diff --git a/manifest.uuid b/manifest.uuid index a881015711..7032ed1ccc 100644 --- a/manifest.uuid +++ b/manifest.uuid @@ -1 +1 @@ -03c3f12853163ce542239a98bdf8e830db2fc7ccf1edb2f9c783fcfdca858879 +2818ef64d9233095b065101392768071fbd95729cde060b954f48ea821fc549a diff --git a/src/shell.c.in b/src/shell.c.in index 30521a5689..db362e0645 100644 --- a/src/shell.c.in +++ b/src/shell.c.in @@ -9184,6 +9184,7 @@ static int do_meta_command(char *zLine, ShellState *p){ }else if( c=='d' && n>=3 && cli_strncmp(azArg[0], "dbtotxt", n)==0 ){ + open_db(p, 0); rc = shell_dbtotxt_command(p, nArg, azArg); }else