diff --git a/tests/queries/0_stateless/01832_memory_write_suffix.reference b/tests/queries/0_stateless/01832_memory_write_suffix.reference new file mode 100644 index 00000000000..d00491fd7e5 --- /dev/null +++ b/tests/queries/0_stateless/01832_memory_write_suffix.reference @@ -0,0 +1 @@ +1 diff --git a/tests/queries/0_stateless/01832_memory_write_suffix.sql b/tests/queries/0_stateless/01832_memory_write_suffix.sql new file mode 100644 index 00000000000..718a4e4ac9d --- /dev/null +++ b/tests/queries/0_stateless/01832_memory_write_suffix.sql @@ -0,0 +1,7 @@ +drop table if exists data_01832; + +-- Memory writes from the writeSuffix() and if it will be called twice two rows +-- will be written (since it does not reset the block). +create table data_01832 (key Int) Engine=Memory; +insert into data_01832 values (1); +select * from data_01832;