添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
风度翩翩的莲藕  ·  About billing for ...·  1 月前    · 
刀枪不入的玉米  ·  MyBatis ...·  2 月前    · 
谈吐大方的跑步鞋  ·  [jaxb-impl-dev] ...·  2 月前    · 
读研的作业本  ·  EyeWorld China ...·  2 月前    · 
id: record.dynamodb.NewImage.id.S, userId: record.dynamodb.NewImage.userId.S, summonerId: record.dynamodb.NewImage.summonerId.N, name: record.dynamodb.NewImage.name.S, profileIconId: record.dynamodb.NewImage.profileIconId.N, summonerLevel: record.dynamodb.NewImage.summonerLevel.N, revisionDate: record.dynamodb.NewImage.revisionDate.N, createdAt: record.dynamodb.NewImage.createdAt.S, updatedAt: record.dynamodb.NewImage.updatedAt.S }).then(function (user) { console.log(user); }).catch(function (err) { console.log(err);
name: 'SequelizeDatabaseError',
  message: 'syntax error at or near "RETURNING"',
  parent: 
   { [error: syntax error at or near "RETURNING"]
     name: 'error',
     length: 136,
     severity: 'ERROR',
     code: '42601',
     detail: undefined,
     hint: undefined,
     position: '330',
     internalPosition: undefined,
     internalQuery: undefined,
     where: undefined,
     schema: undefined,
     table: undefined,
     column: undefined,
     dataType: undefined,
     constraint: undefined,
     file: '/home/ec2-user/padb/src/pg/src/backend/parser/parser_scan.l',
     line: '699',
     routine: 'yyerror',
     sql: 'INSERT INTO "Lol" ("id","userId","summonerId","name","profileIconId","summonerLevel","revisionDate","createdAt","updatedAt") VALUES (\'463d118c-2139-4679-8cdb-d07249bd2498\',\'a845a2ca-14c9-46de-93c6-d3dd1bd1a8a0\',\'2122373\',\'mariaraujo\',\'716\',\'30\',\'14804545500\',\'2017-01-09 18:50:15.282 +00:00\',\'2017-02-08 00:53:44.853 +00:00\') RETURNING *;' }

看答案

我可以使它工作,设置返回false:

Lol.create({
                    id: record.dynamodb.NewImage.id.S,
                    userId: record.dynamodb.NewImage.userId.S,
                    summonerId: record.dynamodb.NewImage.summonerId.N,
                    name: record.dynamodb.NewImage.name.S,
                    profileIconId: record.dynamodb.NewImage.profileIconId.N,
                    summonerLevel: record.dynamodb.NewImage.summonerLevel.N,
                    revisionDate: record.dynamodb.NewImage.revisionDate.N,
                    createdAt: record.dynamodb.NewImage.createdAt.S,
                    updatedAt: record.dynamodb.NewImage.updatedAt.S
                }, {returning: false}).then(function (user) {
                    console.log(user);
                }).catch(function (err) {
                    console.log(err);
  • postgres - 错误:“成本附近”或附近的语法错误
  • Postgres在“ON”或附近的语法错误
  • Postgres:错误[42601]错误:语法错误或附近的“$ 2”。执行查询时出错
  • 循环Postgres的语法错误
  • Postgres语法在“铸造”或附近
  • Postgres语法错误 - 触发器
  • Postgres Case Update语法错误
  • 在节点中使用Postgres插入的“ $ 1”或接近“ $ 1”的语法错误
  • postgres语法问题或?
  • 如何修复多行节点postgres insert-或接近$ 4的语法错误
  • 学习大学物理之神器——懂与应试APP
  • 海盗船推出128GB固态硬盘 最高400M/S
  • 链接Redis时出现 “ERR Client sent AUTH, but no password is set” 异常的原因及解决办法
  • ZooKeeper简介
  • redis 设置 mybatis数据库主键自增值
  • CentOS7 下搭配LNMP环境
  • 如何share SharePoint Online site content给所有人?
  • Setup and style qTips jquery
  • How to call fullcalendar callback on click of hyperlink
  • REST API Confusion
  • Android get data from dynamic url from APi
  • showing tips or announcements when sites and store info in cookies
  • Group lines in matplotlib
  • Unable to set the GroupStyle for a ListBox via Style?
  • hibernate cascade deletion
  • Bootstrap navbar left to right
  • Why do we use a pendingIntent to start a GeofenceTransitionIntentService?
  • 网站内容人工审核和清理中!本站和cxyzjd等抄袭本站模板的网站没有任何关系,请注意分辨!
    本站在春节期间即将改版,对人工核实过的涉及csdn版权文章做删除处理,
    仅保留摘要,大家可以点击摘要后面的“查看原文”跳转到csdn查看。改版后的网站不再发布任何和csdn有关的文章,谢谢理解。
    由于数据、程序改动较大,加之时间匆忙,本次改版会持续数日,可能会间歇性影响用户访问。
    同时由于csdn自身存在大量版权争议文章,例如机器人账号、转载和不实标注原创问题,本次数据改动均采取人工核实,难免有遗漏和偏差,请来信指正。