sql语法导致的Xcart错误
Xcart error caused by sql syntax
我是 运行 我在 Xcart 下的商店,我在网络浏览器上收到以下错误:
INVALID SQL: 1064 : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'OPTION SQL_MAX_JOIN_SIZE=1073741824' at line 1
SQL QUERY FAILURE:SET OPTION SQL_MAX_JOIN_SIZE=1073741824
INVALID SQL: 1064 : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'OPTION SQL_BIG_SELECTS=1' at line 1
SQL QUERY FAILURE:SET OPTION SQL_BIG_SELECTS=1
INVALID SQL: 1064 : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'OPTION SQL_BIG_SELECTS=1' at line 1
SQL QUERY FAILURE:SET OPTION SQL_BIG_SELECTS=1
这是什么原因,我可以清除错误吗?
谢谢!
您的 MySQL 服务器似乎已更新。
替换所有字符串,例如
'SET OPTION SQL_MAX_JOIN_SIZE'
对这些
'SET SESSION MAX_JOIN_SIZE'
基于 unix 的主机的命令
sed -i 's/SET OPTION /SET SESSION /' $(grep --include='*.php' -rl 'SET OPTION ' ~/www/xcart_4_6_x)
它需要检查执行此查询的 xcart php 脚本,并且 OPTION
被 SESSION
替换为
之类的错误
SQL QUERY FAILURE:SET OPTION SQL_BIG_SELECTS=1
另外,至于
SQL QUERY FAILURE:SET OPTION SQL_MAX_JOIN_SIZE=1073741824
可能值得将其更改为 db_query("SET max_join_size=1073741824");
它适用于某些 xcart 安装,如果它对您的项目也有帮助,请报告,谢谢
我是 运行 我在 Xcart 下的商店,我在网络浏览器上收到以下错误:
INVALID SQL: 1064 : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'OPTION SQL_MAX_JOIN_SIZE=1073741824' at line 1
SQL QUERY FAILURE:SET OPTION SQL_MAX_JOIN_SIZE=1073741824
INVALID SQL: 1064 : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'OPTION SQL_BIG_SELECTS=1' at line 1
SQL QUERY FAILURE:SET OPTION SQL_BIG_SELECTS=1
INVALID SQL: 1064 : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'OPTION SQL_BIG_SELECTS=1' at line 1
SQL QUERY FAILURE:SET OPTION SQL_BIG_SELECTS=1
这是什么原因,我可以清除错误吗?
谢谢!
您的 MySQL 服务器似乎已更新。
替换所有字符串,例如
'SET OPTION SQL_MAX_JOIN_SIZE'
对这些
'SET SESSION MAX_JOIN_SIZE'
基于 unix 的主机的命令
sed -i 's/SET OPTION /SET SESSION /' $(grep --include='*.php' -rl 'SET OPTION ' ~/www/xcart_4_6_x)
它需要检查执行此查询的 xcart php 脚本,并且 OPTION
被 SESSION
替换为
SQL QUERY FAILURE:SET OPTION SQL_BIG_SELECTS=1
另外,至于
SQL QUERY FAILURE:SET OPTION SQL_MAX_JOIN_SIZE=1073741824
可能值得将其更改为 db_query("SET max_join_size=1073741824");
它适用于某些 xcart 安装,如果它对您的项目也有帮助,请报告,谢谢