SQLite

View Ticket
Login
Ticket Hash: bd770b2c529cbf56cca2302d5a5cae3b6d3b37f0
Title: shell doesn't return error exit code on import errors
Status: Fixed Type: Code_Defect
Severity: Important Priority: Low
Subsystem: Shell Resolution: Fixed
Last Modified: 2009-10-23 00:37:10
Version Found In: 3.6.18
Description:
See also http://www.sqlite.org/cvstrac/tktview?tn=3966
$ ./sqlite3 ':memory:' '.import notexist notexist'
Error: no such table: notexist
$ echo $?
0
$ sqlite3 ':memory:' 'select bad'
SQL error: no such column: bad
$ echo $?
1

shane added on 2009-10-23 00:37:10:
Check-in [009efad0f4].