Commit 4bb87996 authored by Alexander Barkov's avatar Alexander Barkov

DEV-10583 sql_mode=ORACLE: SQL%ROWCOUNT

Fixed that EXPLAIN EXTENDED erroneously returned
"SQL%%ROWCOUNT" instead of "SQL%ROWCOUNT"
parent a2a196c0
......@@ -1073,7 +1073,7 @@ EXPLAIN EXTENDED SELECT sql%rowcount;
id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
Warnings:
Note 1003 select SQL%%ROWCOUNT AS "sql%rowcount"
Note 1003 select SQL%ROWCOUNT AS "sql%rowcount"
CREATE TABLE t1 AS SELECT SQL%ROWCOUNT;
SHOW CREATE TABLE t1;
Table Create Table
......
......@@ -2604,7 +2604,7 @@ class Item_func_oracle_sql_rowcount :public Item_int_func
public:
Item_func_oracle_sql_rowcount(THD *thd): Item_int_func(thd) {}
longlong val_int();
const char *func_name() const { return "SQL%%ROWCOUNT"; }
const char *func_name() const { return "SQL%ROWCOUNT"; }
void print(String *str, enum_query_type query_type)
{
str->append(func_name());
......
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