2017-06-06 71 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

回答