diff options
author | unknown <sergefp@mysql.com> | 2005-11-07 09:23:43 +0300 |
---|---|---|
committer | unknown <sergefp@mysql.com> | 2005-11-07 09:23:43 +0300 |
commit | 467deb4cb7aeb456086838cadcdf10b25b667a36 (patch) | |
tree | 43568722102eea9419ddf527772823b778977743 /ndb | |
parent | 3a5a518de42c8c23b7b80d1ae716424e23748463 (diff) | |
download | mariadb-git-467deb4cb7aeb456086838cadcdf10b25b667a36.tar.gz |
BUG#14480, attempt2: In CREATE ... SELECT ..., don't count the same field twice
when calculating table->null_fields.
mysql-test/r/create.result:
Testcase for BUG#14480
mysql-test/t/create.test:
Testcase for BUG#14480
sql/sql_table.cc:
BUG#14480: For CREATE ... SELECT ... a field list passed to mysql_prepare_table() contains
instances of create_field for both create-list and select-list. mysql_prepare_table()
matches elements that refer to the same field, and joins them together. When the "join"
is performed, both of create_field structures has already been counted in "null_fields".
This fix makes sure that "null_fields" contains the correct value after two create_field
structures have been joined.
Diffstat (limited to 'ndb')
0 files changed, 0 insertions, 0 deletions