0
0
mirror of https://github.com/mattn/go-sqlite3.git synced 2025-06-04 01:10:35 +00:00

18 Commits

Author SHA1 Message Date
bd2433c145 fix error message 2017-11-19 00:09:25 +09:00
7fbd11b453 handle new error message 2017-11-18 23:24:37 +09:00
866c3293d9 fix breaking compatibility.
revert cf4bd560f1

close 
2017-03-21 09:14:48 +09:00
bd7fdb6033 fix test 2017-03-21 00:57:55 +09:00
796dcab06d fix test 2017-03-21 00:42:54 +09:00
a528a30852 Add test for ErrNo.Extend() 2015-01-26 18:38:13 +09:00
6535341da9 Add one blank line for godoc 2014-08-18 17:00:59 +09:00
5e5d088a36 Add license header 2014-08-18 16:56:31 +09:00
f395aa170e Enable extended error codes. 2014-04-01 14:01:19 +02:00
ba91ba98f9 Fix test 2014-01-29 09:17:47 +09:00
dfec358c75 Add test for error == nil 2014-01-29 09:02:22 +09:00
72bb737cf9 Add unit test for enhanced error reporting
Add a test to check for a useful response for a SQL
query that cannot be executed due to a constraint failure
2013-11-19 14:05:48 +00:00
e0729751ac Update test expectations follow change of concrete error type 2013-11-19 13:53:24 +00:00
19cb26da92 Provide more detailed error messages
Use the sqlite3_errmsg() API to retrieve more specific error
messages.

eg. Attempting to exec 'CREATE TABLE ExistingTableName (...)'
will now report 'table already exists: ExistingTableName' rather
than 'SQL logic error or missing database'
2013-11-19 09:13:19 +00:00
6176b90b70 Add tests 2013-09-03 19:36:33 +09:00
2d6a60e2f5 Start work on introducing machine-readable error codes.
This commit introduces a new type 'ErrNo', implementing the error
interface.  Constants for all sqlite3 error codes are provided
in the new source file "error.go".
2013-08-30 22:35:32 +09:00
34a33cffaa Rervert ff8e6729ce 2013-08-14 12:07:38 +09:00
ff8e6729ce Start work on introducing machine-readable error codes.
This commit introduces a new type 'ErrNo', implementing the error
interface.  Constants for all sqlite3 error codes are provided
in the new source file "error.go".
2013-08-13 21:45:05 +09:00