2017-06-06 115 views
-3

squeryl MySQL驱动程序错误squeryl MySQL驱动程序错误

我最近改变的Postgres到MySQL,Squeryl不能同时执行的语句正常工作作为一个简单的查询

from(AwacsSchema.ruleConfigs)(rule => select(rule)) 

例外:你有一个错误你的SQL语法;检查与您的MySQL服务器版本相对应的手册,在第2行将'。“name”作为“rule_conf13_name”, “rule_conf13”。“expression_category”用作“rule_co” errorCode:1064,sqlState:42000

选择 “rule_conf13”, “名” 为 “rule_conf13_name”,
“rule_conf13”。 “expression_category” 为 “rule_conf13_expression_category”, “rule_conf13”。 “createdTime” 为 “rule_conf13_createdTime”,“rule_conf13 “。”interval“为 ”rule_conf13_interval“,”rule_conf13“。”id“为”rule_conf13_id“,
”rule_conf13“。”ex PRESSION”为 “rule_conf13_expression”,
“rule_conf13”, “接收器” 为 “rule_conf13_receivers”,
“rule_conf13”, “原产地” 为 “rule_conf13_origin”,
“rule_conf13”, “状态” 为 “rule_conf13_status”,
“rule_conf13”, “模板” 为 “rule_conf13_template”,
“rule_conf13”。 “updatedTime” 为 “rule_conf13_updatedTime”,
“rule_conf13”。 “OBJECT_ID” 为 “rule_conf13_object_id”

“rule_conf”“rule_conf13 “

+0

你需要去学习一些基础知识。 https://dev.mysql.com/doc/refman/5.7/en/identifiers.html – CBroe

+0

我看到标识符引号字符是反引号('),但SQL表达式由“Squeryl”自动生成,我想知道它是否是一个mysql-java连接器问题,否则。 Squertl是一个ORM框架 –

+0

[在MySQL中何时使用单引号,双引号和反引号]可能的副本(https://stackoverflow.com/questions/11321491/when-to-use-single-quotes-double-quotes -and-反引号合的MySQL) – Qirel

回答