diff options
author | Igor Babaev <igor@askmonty.org> | 2011-08-16 22:48:35 -0700 |
---|---|---|
committer | Igor Babaev <igor@askmonty.org> | 2011-08-16 22:48:35 -0700 |
commit | 249a10c7dd879b26665a7d14d9ce4a5c90ca8c77 (patch) | |
tree | 77bb0b1d419360de2ce89118c7c3e3081849b123 /sql/sql_insert.cc | |
parent | 923dc9ea768dac424f27ae8d8634708e953dab0c (diff) | |
download | mariadb-git-249a10c7dd879b26665a7d14d9ce4a5c90ca8c77.tar.gz |
Fixed LP bug #825035.
The value of maybe_null flag should be saved for the second execution
of a prepared statement from SELECT that uses an outer join.
Diffstat (limited to 'sql/sql_insert.cc')
-rw-r--r-- | sql/sql_insert.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc index 05a30ab49a4..386650ff99c 100644 --- a/sql/sql_insert.cc +++ b/sql/sql_insert.cc @@ -3015,6 +3015,7 @@ bool mysql_insert_select_prepare(THD *thd) select_lex->leaf_tables_exec.push_back(table); table->tablenr_exec= table->table->tablenr; table->map_exec= table->table->map; + table->maybe_null_exec= table->table->maybe_null; } if (arena) thd->restore_active_arena(arena, &backup); |