diff options
author | Christoph Martin <christoph.r.martin@gmail.com> | 2014-04-01 14:01:19 +0200 |
---|---|---|
committer | Christoph Martin <christoph.r.martin@gmail.com> | 2014-04-01 14:01:19 +0200 |
commit | f395aa170e53f8ba00c7fb4cd4af2a3e34257fc1 (patch) | |
tree | 1cf1150a55e5a8f5e94657ffc813197dd120cd23 /sqlite3.go | |
parent | Merge pull request #99 from fawick/master (diff) | |
download | golite-f395aa170e53f8ba00c7fb4cd4af2a3e34257fc1.tar.gz golite-f395aa170e53f8ba00c7fb4cd4af2a3e34257fc1.tar.xz |
Enable extended error codes.
Diffstat (limited to 'sqlite3.go')
-rw-r--r-- | sqlite3.go | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -139,8 +139,10 @@ func (c *SQLiteConn) AutoCommit() bool { } func (c *SQLiteConn) lastError() Error { - return Error{Code: ErrNo(C.sqlite3_errcode(c.db)), - err: C.GoString(C.sqlite3_errmsg(c.db)), + return Error{ + Code: ErrNo(C.sqlite3_errcode(c.db)), + ExtendedCode: ErrNoExtended(C.sqlite3_extended_errcode(c.db)), + err: C.GoString(C.sqlite3_errmsg(c.db)), } } |