node.js - 如果查询中的字段超过 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();
});
});
解决方案
推荐阅读
- php - Laravel Sql 循环请求联合
- go - 如果我不在 goroutine 中添加等待组会发生什么?
- apache-nifi - 如何在 nifi 中检查 RouteOnContent 中的空 JSON 字符串?
- onlyoffice - 如何从 OnlyOffice 的“选择文档语言”中删除不必要的语言?
- scala - Scala:if-else 到带有 Option 的声明性代码
- java - 骆驼交换体记录大小
- shell - 使用 cdo 并使用 shell 脚本将每小时的 netcdf 文件合并为每日文件
- python - 使用多个条件从 pandas 数据框中删除具有重复 DatetimeIndex 值的行
- javascript - Javascript/Mongo:将规范本身作为变量排序
- r - R - Chorddiag:为什么要转置矩阵?