Add SL3Statement

FossilOrigin-Name: cc03d24ff3ef295e0a9769b20587ac48cf5172996c09b5420e59eb4407765d63
This commit is contained in:
Jonathan Schleifer 2020-09-01 01:43:07 +00:00
parent f9bc4936e4
commit 182bd2136b
16 changed files with 774 additions and 17 deletions

View file

@ -38,14 +38,12 @@
self = [super init];
@try {
int errorCode = sqlite3_open_v2(path.UTF8String, &_database,
flags, NULL);
int code = sqlite3_open_v2(path.UTF8String, &_db, flags, NULL);
if (errorCode != SQLITE_OK)
@throw [SL3OpenFailedException
exceptionWithPath: path
flags: flags
errorCode: errorCode];
if (code != SQLITE_OK)
@throw [SL3OpenFailedException exceptionWithPath: path
flags: flags
errorCode: code];
} @catch (id e) {
[self release];
@throw e;
@ -56,7 +54,7 @@
- (void)dealloc
{
sqlite3_close(_database);
sqlite3_close(_db);
[super dealloc];
}