Node-firebird doesn't give results if more than 3 fields in the query

☆樱花仙子☆ 提交于 2021-01-28 12:24:24

问题


I'm testing "node-firebird" with Firebird 2.5 and it runs if I query for 1, 2 or 3 fields, but if I ask for a fourth field, it doesn't give any response. It is not a problem with any exact field because it queries well if I ask for it with less other fields. Depending on the table the number of fields I can query is different.

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();
    });

 
});

来源:https://stackoverflow.com/questions/63032898/node-firebird-doesnt-give-results-if-more-than-3-fields-in-the-query

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!