()
| 81 | } |
| 82 | |
| 83 | func (err Error) Error() string { |
| 84 | var str string |
| 85 | if err.err != "" { |
| 86 | str = err.err |
| 87 | } else { |
| 88 | str = C.GoString(C.sqlite3_errstr(C.int(err.Code))) |
| 89 | } |
| 90 | if err.SystemErrno != 0 { |
| 91 | str += ": " + err.SystemErrno.Error() |
| 92 | } |
| 93 | return str |
| 94 | } |
| 95 | |
| 96 | // result codes from http://www.sqlite.org/c3ref/c_abort_rollback.html |
| 97 | var ( |