Skip to content

Commit

Permalink
removing some old folers and a fix for SQLite3 exec issue IoLanguage#25
Browse files Browse the repository at this point in the history
  • Loading branch information
stevedekorte committed Jan 10, 2012
1 parent 12d54c5 commit bd0df87
Show file tree
Hide file tree
Showing 20 changed files with 14 additions and 3,992 deletions.
21 changes: 14 additions & 7 deletions addons/SQLite3/source/IoSQLite3.c
Expand Up @@ -201,6 +201,18 @@ IoObject *IoSQLite3_setTimeoutSeconds(IoSQLite3 *self, IoObject *locals, IoMessa
return self;
}

void IoSQLite3_justOpen(IoSQLite3 *self)
{
sqlite3_open(CSTRING(DATA(self)->path), &(DATA(self)->db));

IoSQLite3_showError(self);

sqlite3_busy_handler(DATA(self)->db, IoSQLite3_busyHandler, self);
sqlite3_busy_timeout(DATA(self)->db, DATA(self)->timeoutSeconds * 1000);
return self;
}


IoObject *IoSQLite3_open(IoSQLite3 *self, IoObject *locals, IoMessage *m)
{
/*doc SQLite3 open(optionalPathString)
Expand All @@ -218,12 +230,7 @@ IoObject *IoSQLite3_open(IoSQLite3 *self, IoObject *locals, IoMessage *m)
DATA(self)->path = IOREF(IoMessage_locals_symbolArgAt_(m, locals, 0));
}

sqlite3_open(CSTRING(DATA(self)->path), &(DATA(self)->db));

IoSQLite3_showError(self);

sqlite3_busy_handler(DATA(self)->db, IoSQLite3_busyHandler, self);
sqlite3_busy_timeout(DATA(self)->db, DATA(self)->timeoutSeconds * 1000);
IoSQLite3_justOpen(self)
return self;
}

Expand Down Expand Up @@ -329,7 +336,7 @@ IoObject *IoSQLite3_execWithCallback(IoSQLite3 *self,

if (!DATA(self)->db)
{
IoSQLite3_open(self, locals, m);
IoSQLite3_justOpen(self);

if (!DATA(self)->db)
{
Expand Down
38 changes: 0 additions & 38 deletions extras/win32vc7/Io.sln

This file was deleted.

0 comments on commit bd0df87

Please sign in to comment.