Hi Richard, Thank you for the explanation!
In other word, to check if a sqlite file is corrupted, I have to check the stdout instead of the exit value. Am I right? Best, John Lin Richard Hipp <[email protected]> 於 2017年11月23日 週四 上午10:53寫道: > On 11/22/17, 林自均 <[email protected]> wrote: > > > > $ sqlite3 other-db.sqlite 'PRAGMA integrity_check' > > Error: database disk image is malformed > > $ echo $? > > 11 > > > > Is that normal? > > > > Yes. The error is occurring as SQLite is trying to parse the schema, > not while running "PRAGMA integrity_chck". > -- > D. Richard Hipp > [email protected] > _______________________________________________ > sqlite-users mailing list > [email protected] > http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users > _______________________________________________ sqlite-users mailing list [email protected] http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

