-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 01/05/2015 04:53 PM, Lev wrote: > I'm using the PHP bindings for SQLite3. How can I squelch error > and warning messages? I do error checking, but the failing call > emits the messages. > > Messages like: > > Warning: SQLite3::prepare(): Unable to prepare statement: 1, no > such table:
I'm guessing the "1" is a the SQLite integer error code and "no such table: " is the error string from SQLite. It is mystifying why this is a warning and not an error. As far as SQLite is concerned whatever text it was given is an error, referencing what appears to be a zero length table name. There is no way the query can actually execute after getting that error. You sure as heck do not want to squelch error messages. SQLite is a library for developers and only works when you give it correct SQL. Or in short, you squelch the diagnostics by providing acceptable SQL. You need to log/trace queries to find out which ones are the problems. Roger -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlSrSKAACgkQmOOfHg372QRFcACaAwpOYnJwDRX3lwb3+uqSwTsT BKsAoJ18lmnGUrNBKgPgHznYv7m0AlIW =yR3X -----END PGP SIGNATURE----- _______________________________________________ sqlite-users mailing list [email protected] http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

