mirror of https://github.com/mattn/go-sqlite3.git
fix build
This commit is contained in:
parent
53900fb4f0
commit
cf4bd560f1
2
error.go
2
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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue