aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <>2023-04-27 23:44:38 +0000
committerdrh <>2023-04-27 23:44:38 +0000
commitbfd28f9e01ae9a8436095a033ce96cf16b9c6f5b (patch)
tree6d36b251cc33f48a65c60e174ef12c742c6071ad /src
parentd5de1f39b51ba95aab5ce51387eef9dfe8dff093 (diff)
downloadsqlite-bfd28f9e01ae9a8436095a033ce96cf16b9c6f5b.tar.gz
sqlite-bfd28f9e01ae9a8436095a033ce96cf16b9c6f5b.zip
Remove a faulty assert() from the CLI.
[forum:/forumpost/726c4f7db0|Forum post 726c4f7db0]. FossilOrigin-Name: 4bbebb6bfb9910265d91b777c1711b3b8e0732bcf299f7459b20c4ea110422bd
Diffstat (limited to 'src')
-rw-r--r--src/shell.c.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shell.c.in b/src/shell.c.in
index a6d67f409..d7621c0c9 100644
--- a/src/shell.c.in
+++ b/src/shell.c.in
@@ -10516,7 +10516,8 @@ static int do_meta_command(char *zLine, ShellState *p){
if( bDebug ) utf8_printf(p->out, "%s\n", zRevText);
lrc = sqlite3_prepare_v2(p->db, zRevText, -1, &pStmt, 0);
if( lrc!=SQLITE_OK ){
- assert(lrc==SQLITE_NOMEM);
+ /* assert(lrc==SQLITE_NOMEM); // might also be SQLITE_ERROR if the
+ ** user does cruel and unnatural things like ".limit expr_depth 0". */
rc = 1;
}else{
if( zLike ) sqlite3_bind_text(pStmt,1,zLike,-1,SQLITE_STATIC);