Skip to content

Commit

Permalink
some more iterations
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitml committed Feb 28, 2025
1 parent 0747c0e commit 66b34e4
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions regress/expected/where-clause.out
Original file line number Diff line number Diff line change
Expand Up @@ -68,21 +68,25 @@ LINE 1: ...th space" FROM ONLY public.tbl_where_clause WHERE invalid_co...
ERROR: query failed: ERROR: syntax error at or near "="
LINE 1: ...ELECT * FROM ONLY "public"."tbl_where_clause" WHERE id === 3
^
in function: pg_repack_selectivity

-- Test 2: Unclosed quotes in where clause
\! pg_repack --dbname=contrib_regression --table=tbl_where_clause --where-clause="value = 'unclosed"
INFO: repacking table "public.tbl_where_clause"
ERROR: query failed: ERROR: unterminated quoted string at or near "'unclosed"
LINE 1: ...M ONLY "public"."tbl_where_clause" WHERE value = 'unclosed
LINE 1: ...e" FROM ONLY public.tbl_where_clause WHERE value = 'unclosed
^
in function: pg_repack_selectivity
DETAIL: query was: INSERT INTO repack.table_18335 SELECT id,value,active,"column with space" FROM ONLY public.tbl_where_clause WHERE value = 'unclosed

-- Test 3: Type mismatch error in where clause
\! pg_repack --dbname=contrib_regression --table=tbl_where_clause --where-clause="id = 'not a number'"
INFO: repacking table "public.tbl_where_clause"
ERROR: query failed: ERROR: invalid input syntax for type integer: "not a number"
LINE 1: ...ELECT * FROM ONLY "public"."tbl_where_clause" WHERE id = 'not...
^
in function: pg_repack_selectivity
LINE 1: ...ace" FROM ONLY public.tbl_where_clause WHERE id = 'not a num...
^
DETAIL: query was: INSERT INTO repack.table_18335 SELECT id,value,active,"column with space" FROM ONLY public.tbl_where_clause WHERE id = 'not a number'

-- Test 4: Column with space in name
\! pg_repack --dbname=contrib_regression --table=tbl_where_clause --where-clause="\"column with space\" = 'one'"
INFO: repacking table "public.tbl_where_clause"

-- Clean up
Expand Down

0 comments on commit 66b34e4

Please sign in to comment.