Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Node version v0.1.25-15-g4e16e38

  • Loading branch information...
commit 0ed18f52edb7579dff14aa173c4297b9f7107713 1 parent 17e8553
@grumdrig authored
Showing with 4 additions and 4 deletions.
  1. +1 −1  README
  2. +3 −3 sqlite3_bindings.cc
View
2  README
@@ -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
6 sqlite3_bindings.cc
@@ -142,7 +142,7 @@ 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;
}
@@ -150,7 +150,7 @@ class Sqlite3Db : public EventEmitter
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.
Something went wrong with that request. Please try again.