gpt4 book ai didi

mysql - CFWheels - 使用 save() 方法插入记录时出错

转载 作者:行者123 更新时间:2023-11-29 06:58:02 25 4
gpt4 key购买 nike

我在使用 CFWheels 的 Railo 上使用 save() 时出现以下错误:

Cannot execute statement: impossible to write to binary log since BINLOG_FORMAT = STATEMENT and at least one table uses a storage engine limited to row-based logging. InnoDB is limited to row-logging when transaction isolation level is READ COMMITTED or READ UNCOMMITTED.

这是我的代码:

<cfset params.vote['voteUserID'] = params.link.linkUserID />
<cfset params.vote['voteLinkID'] = params.link.linkID />
<cfset params.vote['voteType'] = 1 />

<cfset vote = model("vote").new(params.vote) />
<cfset vote.save() />

知道发生了什么事吗?我有另一个类似的插入语句,它工作正常。我怀疑这与我的数据库表中的设置有关?我正在使用 MySQL。

谢谢。

最佳答案

您是否在此特定环境中使用复制?看起来 BINLOG_FORMAT 设置与复制有关。

我建议查看 MySQL 中设置 BINLOG_FORMAT 的位置,研究各种选项是什么,然后将其更改为适合您的场景的内容。

请参阅此 SO 答案:Why do I get 'Binary logging not possible.' on my MySQL server?

关于mysql - CFWheels - 使用 save() 方法插入记录时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11568445/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com