mJOIN: correct names for right table

This commit is contained in:
chertus 2019-02-21 22:43:14 +03:00
parent 642ad05473
commit a14d955e9e
2 changed files with 5 additions and 3 deletions

View File

@ -66,6 +66,8 @@ struct ColumnAliasesMatcher
if (is_public)
identifier->setAlias(long_name);
}
else if (is_public)
identifier->setAlias(identifier->name); /// prevent crop long to short name
}
else
{

View File

@ -5,9 +5,9 @@
0 0 0
10 100 1000
20 200 2000
┌─t1.a─┬─t2.a─┬─t2.b─┬─t3.b─┬─t3.c─┬─a─┬─b─┬─c─┐
│ 0 │ 0 │ 0 │ 0 │ 0 │ 0 │ 0 │ 0 │
└──────┴──────┴──────┴──────┴──────┴───┴───┴───┘
┌─t1.a─┬─t2.a─┬─t2.b─┬─t3.b─┬─t3.c─┬─t5.a─┬─t5.b─┬─t5.c─┐
│ 0 │ 0 │ 0 │ 0 │ 0 │ 0 │ 0 │ 0 │
└──────┴──────┴──────┴──────┴──────┴─────────────────┘
0 0 0 0
6 6 60 60
12 12 120 120