aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <mattn.jp@gmail.com>2017-03-20 23:26:15 +0900
committerYasuhiro Matsumoto <mattn.jp@gmail.com>2017-03-20 23:26:15 +0900
commitcf4bd560f1588d96c502b4c3407fe1a10cef4a28 (patch)
treeafd9a3e1c07b686234f7607e02e4a0fae09710cc
parentreturn nil when last error is SQLITE_OK (diff)
downloadgolite-cf4bd560f1588d96c502b4c3407fe1a10cef4a28.tar.gz
golite-cf4bd560f1588d96c502b4c3407fe1a10cef4a28.tar.xz
fix build
-rw-r--r--error.go2
-rw-r--r--sqlite3.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/error.go b/error.go
index 1f14aba..7d29b4b 100644
--- a/error.go
+++ b/error.go
@@ -72,7 +72,7 @@ func (err ErrNoExtended) Error() string {
}
// Error return error message.
-func (err Error) Error() string {
+func (err *Error) Error() string {
if err.err != "" {
return err.err
}
diff --git a/sqlite3.go b/sqlite3.go
index 5df6c8b..6230b29 100644
--- a/sqlite3.go
+++ b/sqlite3.go
@@ -399,7 +399,7 @@ func (c *SQLiteConn) AutoCommit() bool {
return int(C.sqlite3_get_autocommit(c.db)) != 0
}
-func (c *SQLiteConn) lastError() Error {
+func (c *SQLiteConn) lastError() *Error {
rv := C.sqlite3_errcode(c.db)
if rv == C.SQLITE_OK {
return nil