chenchun / gosqlite

Automatically exported from code.google.com/p/gosqlite
0 stars 0 forks source link

Please provide the sqlite3 error code in a custom Error #22

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Please consider raising a custom Error, with access to sqlite3_errcode and 
sqlite3_extended_errcode.

Otherwise you get people doing crazy string matching on the error messages, and 
all the bugs that invariably causes.

e.g.  
https://github.com/dotcloud/docker/commit/e8af7fcf6da03da65a379c12c90e6626c31846
ae

Original issue reported on code.google.com by jus...@fathomdb.com on 13 Mar 2014 at 1:13