Method: SQLite3::Database#errcode
- Defined in:
- ext/sqlite3/database.c
#errcode ⇒ Object
Return an integer representing the last error to have occurred with this database.
466 467 468 469 470 471 472 473 |
# File 'ext/sqlite3/database.c', line 466 static VALUE errcode_(VALUE self) { sqlite3RubyPtr ctx; Data_Get_Struct(self, sqlite3Ruby, ctx); REQUIRE_OPEN_DB(ctx); return INT2NUM((long)sqlite3_errcode(ctx->db)); } |