mirror of
				https://github.com/sqlite/sqlite.git
				synced 2025-11-03 16:53:36 +03:00 
			
		
		
		
	Fix a bug in the command-line shell logic that attempts to continue with a
".dump" even after encountering database corruption. FossilOrigin-Name: 020b5e90f950a42299074ff770612b9e68850d95
This commit is contained in:
		@@ -1369,7 +1369,7 @@ static int run_schema_dump_query(
 | 
			
		||||
    }
 | 
			
		||||
    zQ2 = malloc( len+100 );
 | 
			
		||||
    if( zQ2==0 ) return rc;
 | 
			
		||||
    sqlite3_snprintf(sizeof(zQ2), zQ2, "%s ORDER BY rowid DESC", zQuery);
 | 
			
		||||
    sqlite3_snprintf(len+100, zQ2, "%s ORDER BY rowid DESC", zQuery);
 | 
			
		||||
    rc = sqlite3_exec(p->db, zQ2, dump_callback, p, &zErr);
 | 
			
		||||
    if( rc ){
 | 
			
		||||
      fprintf(p->out, "/****** ERROR: %s ******/\n", zErr);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user