diff options
Diffstat (limited to 'vendor/github.com/ncruces/go-sqlite3/context.go')
| -rw-r--r-- | vendor/github.com/ncruces/go-sqlite3/context.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/github.com/ncruces/go-sqlite3/context.go b/vendor/github.com/ncruces/go-sqlite3/context.go index 269bf52f9..f7a8cc557 100644 --- a/vendor/github.com/ncruces/go-sqlite3/context.go +++ b/vendor/github.com/ncruces/go-sqlite3/context.go @@ -198,14 +198,14 @@ func (ctx Context) ResultError(err error) { return } - msg, code := errorCode(err, _OK) + msg, code := errorCode(err, ERROR) if msg != "" { defer ctx.c.arena.mark()() ptr := ctx.c.arena.string(msg) ctx.c.call("sqlite3_result_error", stk_t(ctx.handle), stk_t(ptr), stk_t(len(msg))) } - if code != _OK { + if code != res_t(ERROR) { ctx.c.call("sqlite3_result_error_code", stk_t(ctx.handle), stk_t(code)) } |
