mirror of
https://github.com/MariaDB/server.git
synced 2025-01-27 01:04:19 +01:00
84f25c25f2
A "field" could be either an Item_field or (if loading into a view) an Item_direct_ref that references Item_field. Also: when iterating fields, use fields of the TABLE_LIST (table or view), not fields of a TABLE (actual underlying table - might have more columns).
20 lines
656 B
Text
20 lines
656 B
Text
#
|
|
# MDEV-3940 Server crash or assertion `item->type() == Item::STRING_ITEM' failure on LOAD DATA through a view with statement binary logging
|
|
#
|
|
|
|
--source include/have_binlog_format_statement.inc
|
|
|
|
--write_file $MYSQLTEST_VARDIR/3940.data
|
|
1
|
|
EOF
|
|
|
|
create table t1 (i int, j int);
|
|
create view v1 as select i from t1;
|
|
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
|
|
--eval LOAD DATA LOCAL INFILE '$MYSQLTEST_VARDIR/3940.data' INTO TABLE v1 (i)
|
|
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
|
|
--eval LOAD DATA LOCAL INFILE '$MYSQLTEST_VARDIR/3940.data' INTO TABLE v1
|
|
select * from v1;
|
|
--source include/show_binlog_events.inc
|
|
drop view v1;
|
|
drop table t1;
|