diff --git a/tests/queries/0_stateless/01350_intdiv_nontrivial_fpe.reference b/tests/queries/0_stateless/01350_intdiv_nontrivial_fpe.reference new file mode 100644 index 00000000000..ff5ca85eb55 --- /dev/null +++ b/tests/queries/0_stateless/01350_intdiv_nontrivial_fpe.reference @@ -0,0 +1,3 @@ +-36170086419038336 +-140739635871744 +-2147483648 diff --git a/tests/queries/0_stateless/01350_intdiv_nontrivial_fpe.sql b/tests/queries/0_stateless/01350_intdiv_nontrivial_fpe.sql new file mode 100644 index 00000000000..29dfb2c3fda --- /dev/null +++ b/tests/queries/0_stateless/01350_intdiv_nontrivial_fpe.sql @@ -0,0 +1,5 @@ +select intDiv(-9223372036854775808, 255); +select intDiv(-9223372036854775808, 65535); +select intDiv(-9223372036854775808, 4294967295); +select intDiv(-9223372036854775808, 18446744073709551615); -- { serverError 153 } +select intDiv(-9223372036854775808, -1); -- { serverError 153 }