Skip to content

Commit

Permalink
test: added test case addressing #571
Browse files Browse the repository at this point in the history
  • Loading branch information
vjeeva committed Sep 27, 2024
1 parent 74e2598 commit df7d740
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions tests/integration/files/test_schema_data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ CREATE TABLE public."UsersCapital" (
hash_firstname text NOT NULL,
hash_lastname text NOT NULL,
gender character varying(6) NOT NULL,
numericnan numeric(19,4), -- Testing for #571 Numeric NaN
CONSTRAINT users_gender_check CHECK (((gender)::text = ANY (ARRAY[('male'::character varying)::text, ('female'::character varying)::text])))
);

Expand Down Expand Up @@ -106,12 +107,12 @@ INSERT INTO public.fruits (id, name)
-- Data for Name: UsersCapital; Type: TABLE DATA; Schema: public; Owner: owner
--

INSERT INTO public."UsersCapital" (id, hash_firstname, hash_lastname, gender)
VALUES (1, 'garbagefirst', 'garbagelast', 'male'),
(2, 'garbagefirst1', 'garbagelast1', 'female'),
(3, 'sdgarbagefirst', 'dgsadsrbagelast', 'male'),
(4, 'dsdssdgarbagefirst', 'dgsaggggdjjjsrbagelast', 'female'),
(5, 'dsdssdgarbagefirt', 'dgsagggdjjjsrbagelast', 'female');
INSERT INTO public."UsersCapital" (id, hash_firstname, hash_lastname, gender, numericnan)
VALUES (1, 'garbagefirst', 'garbagelast', 'male', 1),
(2, 'garbagefirst1', 'garbagelast1', 'female', 0),
(3, 'sdgarbagefirst', 'dgsadsrbagelast', 'male', 'NaN'),
(4, 'dsdssdgarbagefirst', 'dgsaggggdjjjsrbagelast', 'female', 1),
(5, 'dsdssdgarbagefirt', 'dgsagggdjjjsrbagelast', 'female', 0);


--
Expand Down

0 comments on commit df7d740

Please sign in to comment.