MDEV-25142: JSON_TABLE: CREATE VIEW involving EXISTS PATH ends up with invalid frm
This commit is contained in:
parent
93daad3a1e
commit
98556ef84a
@ -377,6 +377,17 @@ from
|
|||||||
|
|
||||||
drop table t20,t21,t31,t32;
|
drop table t20,t21,t31,t32;
|
||||||
|
|
||||||
|
--echo #
|
||||||
|
--echo # MDEV-25142: JSON_TABLE: CREATE VIEW involving EXISTS PATH ends up with invalid frm
|
||||||
|
--echo #
|
||||||
|
--disable_warnings
|
||||||
|
drop view if exists v1;
|
||||||
|
--enable_warnings
|
||||||
|
|
||||||
|
CREATE VIEW v1 AS SELECT * FROM JSON_TABLE('[]', '$' COLUMNS (f INT EXISTS PATH '$')) a ;
|
||||||
|
show create view v1;
|
||||||
|
drop view v1;
|
||||||
|
|
||||||
--echo #
|
--echo #
|
||||||
--echo # End of 10.6 tests
|
--echo # End of 10.6 tests
|
||||||
--echo #
|
--echo #
|
||||||
|
@ -982,7 +982,7 @@ int Json_table_column::print(THD *thd, Field **f, String *str)
|
|||||||
(*f)->sql_type(column_type);
|
(*f)->sql_type(column_type);
|
||||||
|
|
||||||
if (str->append(column_type) ||
|
if (str->append(column_type) ||
|
||||||
str->append(m_column_type == PATH ? " PATH " : " EXISTS ") ||
|
str->append(m_column_type == PATH ? " PATH " : " EXISTS PATH ") ||
|
||||||
print_path(str, &m_path))
|
print_path(str, &m_path))
|
||||||
return 1;
|
return 1;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user