首页 > 解决方案 > 如果查询中的字段超过 3 个,Node-firebird 不会给出结果

问题描述

我正在使用 Firebird 2.5 测试“node-firebird”,如果我查询 1、2 或 3 个字段,它就会运行,但如果我要求第四个字段,它不会给出任何响应。任何精确字段都不是问题,因为如果我用较少的其他字段请求它,它就会很好地查询。根据表的不同,我可以查询的字段数是不同的。

var Firebird = require('node-firebird');

var options = {};
 
options.host = '127.0.0.1';
options.port = 3050;
options.database = 'xxx.FDB';
options.user = 'SYSDBA';
options.password = 'masterkey';
options.lowercase_keys = false; // set to true to lowercase keys
options.role = null;            // default
options.pageSize = 4096;        // default when creating database


Firebird.attach(options, function(err, db) {

    if (err)
        throw err;


    db.query('SELECT fiel1, field2, field3_act FROM table', function(err, result) {
 
        console.log("result", result)

        db.detach();
    });

 
});

标签: node.jsfirebirdnode-firebird

解决方案


推荐阅读