Mysql Sailsjs不输出bigint

Mysql Sailsjs不输出bigint,mysql,sails.js,Mysql,Sails.js,我正在尝试使用mysql适配器从mysql表中显示sails中的表 表中的ID采用以下格式 14482773051001000000 14482773051001000001 14482773051001000002 但船帆正吐出我想要的每一个字 14482773051001000000 14482773051001000000 14482773051001000000 基本上用0替换所有最后的数字 我尝试过autoPK false并将bigint的大小设置为64,但没有效果 我的属性当前设

我正在尝试使用mysql适配器从mysql表中显示sails中的表 表中的ID采用以下格式

14482773051001000000
14482773051001000001
14482773051001000002
但船帆正吐出我想要的每一个字

14482773051001000000
14482773051001000000
14482773051001000000
基本上用0替换所有最后的数字

我尝试过autoPK false并将bigint的大小设置为64,但没有效果

我的属性当前设置如下:

 autoPK: false,
 schema: true,

  attributes: {
    id: {
  type: 'integer',
      size: 64,
      unique: true,
      autoIncrement:true,
      primaryKey: true
    },
有人能帮忙吗/


答复
答案是通过MysqlAdapter打开supportBigNumbers:true

myMysqlConnection: {
  adapter: 'sails-mysql',
  host: '192.168.x.x',
  user: 'username',
  password: 'password',
  database: 'myDb',
  supportBigNumbers: true
},
MyMySQL连接:{ 适配器:“sails mysql”, 主机:“192.168.x.x”, 用户:“用户名”, 密码:“password”, 数据库:“myDb”, supportBigNumbers:对 },


多亏了gitter上的@japel,答案是通过MysqlAdapter打开supportBigNumbers:true

myMysqlConnection: {
  adapter: 'sails-mysql',
  host: '192.168.x.x',
  user: 'username',
  password: 'password',
  database: 'myDb',
  supportBigNumbers: true
},
感谢gitter上的@japel