Permalink
Browse files

Node version v0.1.25-15-g4e16e38

  • Loading branch information...
1 parent 17e8553 commit 0ed18f52edb7579dff14aa173c4297b9f7107713 @grumdrig committed Jan 19, 2010
Showing with 4 additions and 4 deletions.
  1. +1 −1 README
  2. +3 −3 sqlite3_bindings.cc
View
@@ -8,6 +8,6 @@ The two files required to use these bindings are sqlite.js and
build/default/sqlite3_bindings.node. Put this directory in your
NODE_PATH or copy those two files where you need them.
-Tested with Node version 0.1.18
+Tested with Node version v0.1.25-15-g4e16e38
(c) 2010 Eric Fredricksen - See permissive license terms at top of sqlite.js
View
@@ -142,15 +142,15 @@ class Sqlite3Db : public EventEmitter
static int CommitHook(void* v_this) {
HandleScope scope;
Sqlite3Db* db = static_cast<Sqlite3Db*>(v_this);
- db->Emit("commit", 0, NULL);
+ db->Emit(String::New("commit"), 0, NULL);
// TODO: allow change in return value to convert to rollback...somehow
return 0;
}
static void RollbackHook(void* v_this) {
HandleScope scope;
Sqlite3Db* db = static_cast<Sqlite3Db*>(v_this);
- db->Emit("rollback", 0, NULL);
+ db->Emit(String::New("rollback"), 0, NULL);
}
static void UpdateHook(void* v_this, int operation, const char* database,
@@ -159,7 +159,7 @@ class Sqlite3Db : public EventEmitter
Sqlite3Db* db = static_cast<Sqlite3Db*>(v_this);
Local<Value> args[] = { Int32::New(operation), String::New(database),
String::New(table), Number::New(rowid) };
- db->Emit("update", 4, args);
+ db->Emit(String::New("update"), 4, args);
}
/*

0 comments on commit 0ed18f5

Please sign in to comment.