Merge branch '2.0' into develop-2.0-merge
This commit is contained in:
@ -2417,7 +2417,7 @@ extern void maxscaleShow(Parse* pParse, MxsShow* pShow)
|
||||
case MXS_SHOW_COLUMNS:
|
||||
{
|
||||
info->types = QUERY_TYPE_READ;
|
||||
update_names(info, "information_schema", "COLUMNS");
|
||||
update_names(info, zDatabase, zName);
|
||||
if (pShow->data == MXS_SHOW_COLUMNS_FULL)
|
||||
{
|
||||
update_field_info(info, "information_schema", "COLUMNS", "COLLATION_NAME", u, NULL);
|
||||
|
||||
@ -3022,13 +3022,17 @@ like_or_where_opt ::= WHERE expr.
|
||||
|
||||
%type show {MxsShow}
|
||||
|
||||
show(A) ::= SHOW full_opt(X) COLUMNS from_or_in nm(Y) dbnm(Z) from_or_in_db_opt like_or_where_opt . {
|
||||
show(A) ::= SHOW full_opt(X) COLUMNS from_or_in nm(Y) dbnm(Z) from_or_in_db_opt(W) like_or_where_opt . {
|
||||
A.what = MXS_SHOW_COLUMNS;
|
||||
A.data = X;
|
||||
if (Z.z) {
|
||||
A.pName = &Z;
|
||||
A.pDatabase = &Y;
|
||||
}
|
||||
else if (W.z) {
|
||||
A.pName = &Y;
|
||||
A.pDatabase = &W;
|
||||
}
|
||||
else {
|
||||
A.pName = &Y;
|
||||
A.pDatabase = NULL;
|
||||
|
||||
Reference in New Issue
Block a user