2021-01-14 22:39:43 +00:00
|
|
|
-- { echo }
|
|
|
|
create table values_01564(
|
|
|
|
a int,
|
|
|
|
constraint c1 check a < 10) engine Memory;
|
|
|
|
-- client error hint after broken insert values
|
|
|
|
insert into values_01564 values ('f'); -- { clientError 6 }
|
|
|
|
insert into values_01564 values ('f'); -- { clientError 6 }
|
|
|
|
select 1;
|
|
|
|
1
|
|
|
|
insert into values_01564 values ('f'); -- { clientError 6 }
|
|
|
|
select nonexistent column; -- { serverError 47 }
|
|
|
|
select 1;
|
|
|
|
1
|
|
|
|
select nonexistent column; -- { serverError 47 }
|
|
|
|
-- server error hint after broken insert values (violated constraint)
|
|
|
|
insert into values_01564 values (11); -- { serverError 469 }
|
|
|
|
insert into values_01564 values (11); -- { serverError 469 }
|
|
|
|
select 1;
|
|
|
|
1
|
|
|
|
insert into values_01564 values (11); -- { serverError 469 }
|
|
|
|
select nonexistent column; -- { serverError 47 }
|
|
|
|
-- query after values on the same line
|
|
|
|
insert into values_01564 values (1); select 1;
|
2021-01-15 20:30:44 +00:00
|
|
|
select 1;
|
|
|
|
1
|
2021-01-15 21:33:53 +00:00
|
|
|
-- the return code must be zero after the final query has failed with expected error
|
|
|
|
insert into values_01564 values (11); -- { serverError 469 }
|