summaryrefslogtreecommitdiff
path: root/sql/sql_select.h
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2023-01-13 12:22:30 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2023-01-13 12:22:30 +0200
commitbb3a63903e5192d39d93259ce2bb7635fcfca7a0 (patch)
tree87b168ee8c77bd35a33390f16f1f324f796d6bc2 /sql/sql_select.h
parentf879ee9ca0d87d3574cb80f2259168cb7d01cbaa (diff)
parent6ffe9ad0d4244a86476fab1485145c0c91871579 (diff)
downloadmariadb-git-bb3a63903e5192d39d93259ce2bb7635fcfca7a0.tar.gz
Merge 10.10 into 10.11
Diffstat (limited to 'sql/sql_select.h')
-rw-r--r--sql/sql_select.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/sql/sql_select.h b/sql/sql_select.h
index 1a018e1f2c5..2cd32d73e38 100644
--- a/sql/sql_select.h
+++ b/sql/sql_select.h
@@ -1889,15 +1889,10 @@ public:
*/
enum store_key_result copy(THD *thd)
{
- enum store_key_result result;
enum_check_fields org_count_cuted_fields= thd->count_cuted_fields;
- sql_mode_t org_sql_mode= thd->variables.sql_mode;
- thd->variables.sql_mode&= ~(MODE_NO_ZERO_IN_DATE | MODE_NO_ZERO_DATE);
- thd->variables.sql_mode|= MODE_INVALID_DATES;
- thd->count_cuted_fields= CHECK_FIELD_IGNORE;
- result= copy_inner();
+ Use_relaxed_field_copy urfc(to_field->table->in_use);
+ store_key_result result= copy_inner();
thd->count_cuted_fields= org_count_cuted_fields;
- thd->variables.sql_mode= org_sql_mode;
return result;
}