jjzjj

toBeInserted

全部标签

javascript - 插入一个字母大写字母时,Sequelize 返回小写字母?

当我插入一个大写字母时,sequelize怎么插入并返回一个小写字母?示例:我插入“N”,它保存“n”而不是“N”。我插入了以下内容:console.log(toBeInserted)//let'ssaytoBeInserted="N"db.dataset.findOrCreate({where:{name:toBeInserted}}).spread(function(inserted,created){console.log(inserted);//hereIgetbackinserted="n"})查看SQLDB,我可以看到存储了"n"而不是"N"。但是一旦输入值由至少两个字母组