Skip to content

Commit 3ce1dbb

Browse files
committed
add logic test
1 parent 1e22971 commit 3ce1dbb

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

tests/logictest/suites/base/03_dml/03_0025_delete_from

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,30 @@ select count(*) = 2 from t;
161161
----
162162
1
163163

164+
statement ok
165+
drop table t all;
166+
167+
statement ok
168+
create table t(a Int, b Int);
169+
170+
statement ok
171+
insert into t select number, 50 - number from numbers(100);
172+
173+
statement query B
174+
select count(*) = 100 from t;
175+
176+
----
177+
1
178+
179+
statement ok
180+
delete from t where b > 0;
181+
182+
statement query B
183+
select count(*) = 50 from t;
184+
185+
----
186+
1
187+
164188

165189

166190
statement ok

0 commit comments

Comments
 (0)