Extended support for select UNIX_TIMESTAMP

Extended support for select UNIX_TIMESTAMP
This commit is contained in:
MassimilianoPinto
2015-03-12 15:19:52 +01:00
parent 3255979ca1
commit 6d140494f2

View File

@ -644,7 +644,7 @@ PARSE_ERROR err;
*/ */
if (strncasecmp(sql, "select UNIX_TIMESTAMP", if (strncasecmp(sql, "select UNIX_TIMESTAMP",
strlen("select UNIX_TIMESTAMP")) == 0 strlen("select UNIX_TIMESTAMP")) == 0
&& strstr(sql, "as starttime") != NULL) && (strstr(sql, "as starttime") != NULL || strstr(sql, "AS starttime") != NULL))
{ {
respond_starttime(session->dcb); respond_starttime(session->dcb);
return 1; return 1;