Commit daa8b6b5 authored by Olivier Bertrand's avatar Olivier Bertrand

D:\Ber\Develop\git3.msg

parent 9cace993
...@@ -2739,6 +2739,10 @@ PCFIL ha_connect::CheckCond(PGLOBAL g, PCFIL filp, AMT tty, Item *cond) ...@@ -2739,6 +2739,10 @@ PCFIL ha_connect::CheckCond(PGLOBAL g, PCFIL filp, AMT tty, Item *cond)
case MYSQL_TYPE_DATETIME: case MYSQL_TYPE_DATETIME:
strcat(body, "{ts '"); strcat(body, "{ts '");
strncat(body, res->ptr(), res->length()); strncat(body, res->ptr(), res->length());
if (res->length() < 19)
strcat(body, "1970-01-01 00:00:00" + res->length());
strcat(body, "'}"); strcat(body, "'}");
break; break;
case MYSQL_TYPE_DATE: case MYSQL_TYPE_DATE:
...@@ -4134,6 +4138,10 @@ MODE ha_connect::CheckMode(PGLOBAL g, THD *thd, ...@@ -4134,6 +4138,10 @@ MODE ha_connect::CheckMode(PGLOBAL g, THD *thd,
break; break;
// } // endif partitioned // } // endif partitioned
case SQLCOM_END:
// Met in procedures: IF(EXISTS(SELECT...
newmode= MODE_READ;
break;
default: default:
htrc("Unsupported sql_command=%d\n", thd_sql_command(thd)); htrc("Unsupported sql_command=%d\n", thd_sql_command(thd));
strcpy(g->Message, "CONNECT Unsupported command"); strcpy(g->Message, "CONNECT Unsupported command");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment