diff options
author | unknown <bell@sanja.is.com.ua> | 2005-06-21 20:30:48 +0300 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2005-06-21 20:30:48 +0300 |
commit | 612de7c64346317f2427917beacc483e9d1e3b05 (patch) | |
tree | 5e88fd6af3f6db63d9563fcc5bea3634320b1321 /sql/item.cc | |
parent | 6f86198b4bd93f8eafc089db8219ff79e20aa236 (diff) | |
download | mariadb-git-612de7c64346317f2427917beacc483e9d1e3b05.tar.gz |
fixed view fields names check and generation (changed after Trudy review: underlying field names treat as user set ones) (BUG#7448)
mysql-test/r/view.result:
test of view field names generation
mysql-test/t/view.test:
test of view field names generation
sql/item.cc:
add a flag that indicates that the name of the item was an auto-generated one and so can be changed in a view
sql/item.h:
add a flag that indicates that the name of the item was an auto-generated one and so can be changed in a view
layout fixed
sql/item_func.cc:
line made less then 80 columns
sql/sql_view.cc:
fixed checking of duplicates of view fields:
1) case-insensitive system charset/collation is used now to compare view filds
2) in case if the duplicate field name was of an auto-generated one, we create another unique name for it
sql/sql_yacc.yy:
add a flag that indicates that the name of the item was an auto-generated one and so can be changed in a view
Diffstat (limited to 'sql/item.cc')
-rw-r--r-- | sql/item.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/item.cc b/sql/item.cc index e7feeaa4289..2276758e284 100644 --- a/sql/item.cc +++ b/sql/item.cc @@ -314,6 +314,7 @@ void *Item::operator new(size_t size, Item *reuse, uint *rsize) Item::Item(): rsize(0), name(0), orig_name(0), name_length(0), fixed(0), + is_autogenerated_name(TRUE), collation(&my_charset_bin, DERIVATION_COERCIBLE) { marker= 0; |