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 <d...@sqlite.org> 於 2017年11月23日 週四 上午10:53寫道: > On 11/22/17, 林自均 <johnl...@gmail.com> 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 > d...@sqlite.org > _______________________________________________ > sqlite-users mailing list > sqlite-users@mailinglists.sqlite.org > http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users > _______________________________________________ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users