Using version 3.6.23.1 amalgamation When processing an sql commands from a script file, if exactly two errors occur, then the shell exits. To replicate:
Example file called test.sql End transaction; End transaction; Open the shell with no database and run: .read test.sql The shell will report two errors then exit immediately. The cause On line 1860 In the function do_meta_command(...) The function process_input(...), returns the number of errors encountered. This is put into the rc result code which is then returned from do_meta_command(...) The return codes from do_meta_command are translated as 1 on error, 2 to exit and 0 otherwise. Here is a patch which fixes the stated problem, but does not cover any other possible related issues. 1860,1862c1860 < if(process_input(p, alt)>0){ < rc = 1; < } --- > rc = process_input(p, alt); 2437,2439d2434 < < < ******************************************************************** This email and any attachments are confidential to the intended recipient and may also be privileged. If you are not the intended recipient please delete it from your system and notify the sender. You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person. ******************************************************************** _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users