Skip to content

Commit

Permalink
[postgresql] Add test cases (#4354)
Browse files Browse the repository at this point in the history
  • Loading branch information
be-happy4 committed Dec 12, 2024
1 parent af07bb3 commit 0fb4138
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sql/postgresql/examples/numeric.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1316,3 +1316,10 @@ SELECT pg_lsn(18446744073709551615::numeric);
SELECT pg_lsn(-1::numeric);
SELECT pg_lsn(18446744073709551616::numeric);
SELECT pg_lsn('NaN'::numeric);

--
-- Tests for numeric literal
--
SELECT 0x10, 0X10, 0b10, 0B10, 010, 0 x10, 0 b10;
SELECT abs(0x10), abs(0X10), abs(0b10), abs(0B10),
(array[1])[0x01], ('{1}'::int[])[0b01];

0 comments on commit 0fb4138

Please sign in to comment.