提交 8b529da5 authored 作者: noelgrandin's avatar noelgrandin

Patch from jagermeistermeister@gmail.com

Added compatibility for "SET NAMES" query in MySQL compatibility mode.
上级 eab9b833
...@@ -20,7 +20,8 @@ Change Log ...@@ -20,7 +20,8 @@ Change Log
<h2>Next Version (unreleased)</h2> <h2>Next Version (unreleased)</h2>
<ul><li>The ResultSetMetaData methods getSchemaName and getTableName <ul><li>The ResultSetMetaData methods getSchemaName and getTableName
could return null instead of "" (an empty string) as specified in the JDBC API. could return null instead of "" (an empty string) as specified in the JDBC API.
</li></ul> </li><li>Added compatibility for "SET NAMES" query in MySQL compatibility mode.</li>
</ul>
<h2>Version 1.3.168 (2012-07-13)</h2> <h2>Version 1.3.168 (2012-07-13)</h2>
<ul><li>The message "Transaction log could not be truncated" was sometimes written <ul><li>The message "Transaction log could not be truncated" was sometimes written
......
...@@ -4596,6 +4596,11 @@ public class Parser { ...@@ -4596,6 +4596,11 @@ public class Parser {
readIfEqualOrTo(); readIfEqualOrTo();
read(); read();
return new NoOperation(session); return new NoOperation(session);
} else if(readIf("NAMES")) {
// Quercus PHP MySQL driver compatibility
readIfEqualOrTo();
read();
return new NoOperation(session);
} else if (readIf("SCHEMA")) { } else if (readIf("SCHEMA")) {
readIfEqualOrTo(); readIfEqualOrTo();
Set command = new Set(session, SetTypes.SCHEMA); Set command = new Set(session, SetTypes.SCHEMA);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论