Skip to content

Instantly share code, notes, and snippets.

@mariuz
Created November 10, 2014 11:59
Show Gist options
  • Save mariuz/f8cb5a7873f5e8044c11 to your computer and use it in GitHub Desktop.
Save mariuz/f8cb5a7873f5e8044c11 to your computer and use it in GitHub Desktop.
bools works ok with firebird 3.0 in node-firebird
sys = require("sys")
var Firebird = require('node-firebird');
var options = {};
options.host = '127.0.0.1';
options.database = '/tmp/test.fdb';
options.user = 'SYSDBA';
options.password = 'masterkey';
Firebird.attach(options, function(err, db) {
if (err)
throw err;
db.query('SELECT r.SEC$ACTIVE FROM SEC$USERS r', function(err, result) {
console.log(sys.inspect(result));
db.detach();
});
});
@mariuz
Copy link
Author

mariuz commented Nov 10, 2014

[ { 'sec$active': true } ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment