Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.4(EOL), 10.5, 10.6, 10.7(EOL), 10.8(EOL)
-
None
Description
--source include/have_partition.inc
|
CREATE OR REPLACE TABLE t1 (f BIGINT, s DATE, e DATE, PERIOD FOR app(s,e)) PARTITION BY KEY(f) PARTITIONS 8; |
REPLACE INTO t1 (s,e) VALUES ('2023-07-21','2024-06-07'); |
ALTER TABLE t1 MODIFY f SERIAL; |
DELETE FROM t1 FOR PORTION OF app FROM '2023-07-20' TO '2024-05-23'; |
|
# Cleanup
|
DROP TABLE t1; |
10.4 debug d2013e73 |
mysqld: /data/src/10.4/sql/ha_partition.cc:10493: virtual void ha_partition::get_auto_increment(ulonglong, ulonglong, ulonglong, ulonglong*, ulonglong*): Assertion `part_share->auto_inc_initialized' failed.
|
190405 17:50:08 [ERROR] mysqld got signal 6 ;
|
|
#7 0x00007f7d3e3a6ee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
|
#8 0x0000560cfbf51b36 in ha_partition::get_auto_increment (this=0x7f7d28009a68, offset=1, increment=1, nb_desired_values=1, first_value=0x7f7d3851eb58, nb_reserved_values=0x7f7d3851eb60) at /data/src/10.4/sql/ha_partition.cc:10493
|
#9 0x0000560cfb7caa86 in handler::update_auto_increment (this=0x7f7d28009a68) at /data/src/10.4/sql/handler.cc:3533
|
#10 0x0000560cfb5ac96c in TABLE::update_generated_fields (this=0x7f7d2813b8a0) at /data/src/10.4/sql/table.cc:8310
|
#11 0x0000560cfb5acac1 in TABLE::period_make_insert (this=0x7f7d2813b8a0, src=0x7f7d28015ea0, dst=0x7f7d28132ca8) at /data/src/10.4/sql/table.cc:8330
|
#12 0x0000560cfb5acd77 in TABLE::insert_portion_of_time (this=0x7f7d2813b8a0, thd=0x7f7d28000b00, period_conds=..., rows_inserted=0x7f7d3851ed90) at /data/src/10.4/sql/table.cc:8367
|
#13 0x0000560cfb97a751 in mysql_delete (thd=0x7f7d28000b00, table_list=0x7f7d28015720, conds=0x7f7d28016c28, order_list=0x7f7d280054a0, limit=18446744073709551615, options=0, result=0x0) at /data/src/10.4/sql/sql_delete.cc:842
|
#14 0x0000560cfb483308 in mysql_execute_command (thd=0x7f7d28000b00) at /data/src/10.4/sql/sql_parse.cc:4985
|
#15 0x0000560cfb48e055 in mysql_parse (thd=0x7f7d28000b00, rawbuf=0x7f7d280155e8 "DELETE FROM t1 FOR PORTION OF app FROM '2023-07-20' TO '2024-05-23'", length=67, parser_state=0x7f7d38520180, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:8154
|
#16 0x0000560cfb479aac in dispatch_command (command=COM_QUERY, thd=0x7f7d28000b00, packet=0x7f7d2800a8a1 "DELETE FROM t1 FOR PORTION OF app FROM '2023-07-20' TO '2024-05-23'", packet_length=67, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:1832
|
#17 0x0000560cfb478292 in do_command (thd=0x7f7d28000b00) at /data/src/10.4/sql/sql_parse.cc:1365
|
#18 0x0000560cfb5f0689 in do_handle_one_connection (connect=0x560cfec477c0) at /data/src/10.4/sql/sql_connect.cc:1398
|
#19 0x0000560cfb5f03fa in handle_one_connection (arg=0x560cfec477c0) at /data/src/10.4/sql/sql_connect.cc:1301
|
#20 0x0000560cfbae480d in pfs_spawn_thread (arg=0x560cfed39b90) at /data/src/10.4/storage/perfschema/pfs.cc:1862
|
#21 0x00007f7d40295494 in start_thread (arg=0x7f7d38521700) at pthread_create.c:333
|
#22 0x00007f7d3e46393f in clone () from /lib/x86_64-linux-gnu/libc.so.6
|
Reproducible with MyISAM, InnoDB, Aria.
Non-debug build doesn't crash, but it produces a strange error:
10.4 non-debug d2013e73 |
mysqltest: At line 5: query 'DELETE FROM t1 FOR PORTION OF app FROM '2023-07-20' TO '2024-05-23'' failed: 167: Out of range value for column 'f' at row 1
|