Skip to content

Commit 03ef0f2

Browse files
authored
Merge pull request TryGhost#925 from wmertens/patch-1
add OPEN_FULLMUTEX constant
2 parents 1852c8c + c4b4f65 commit 03ef0f2

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

src/node_sqlite3.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ NAN_MODULE_INIT(RegisterModule) {
2121
DEFINE_CONSTANT_INTEGER(target, SQLITE_OPEN_READONLY, OPEN_READONLY);
2222
DEFINE_CONSTANT_INTEGER(target, SQLITE_OPEN_READWRITE, OPEN_READWRITE);
2323
DEFINE_CONSTANT_INTEGER(target, SQLITE_OPEN_CREATE, OPEN_CREATE);
24+
DEFINE_CONSTANT_INTEGER(target, SQLITE_OPEN_FULLMUTEX, OPEN_FULLMUTEX);
2425
DEFINE_CONSTANT_STRING(target, SQLITE_VERSION, VERSION);
2526
#ifdef SQLITE_SOURCE_ID
2627
DEFINE_CONSTANT_STRING(target, SQLITE_SOURCE_ID, SOURCE_ID);

test/constants.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ describe('constants', function() {
66
assert.ok(sqlite3.OPEN_READONLY === 1);
77
assert.ok(sqlite3.OPEN_READWRITE === 2);
88
assert.ok(sqlite3.OPEN_CREATE === 4);
9+
assert.ok(sqlite3.OPEN_FULLMUTEX === 0x00010000);
910
});
1011

1112
it('should have the right error flags', function() {

0 commit comments

Comments
 (0)