1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

fix for bug#12913

(Simple SQL can crash server or connection)
(not initialized member leads to server crash)
This commit is contained in:
andrey@lmy004.
2005-09-01 00:13:02 +02:00
parent e0f3c5c0fb
commit f75ac7fb82
3 changed files with 13 additions and 0 deletions

View File

@ -649,6 +649,7 @@ int mysql_prepare_table(THD *thd, HA_CREATE_INFO *create_info,
sql_field->decimals= dup_field->decimals;
sql_field->flags= dup_field->flags;
sql_field->unireg_check= dup_field->unireg_check;
sql_field->interval= dup_field->interval;
it2.remove(); // Remove first (create) definition
select_field_pos--;
break;