Skip to content

Commit

Permalink
literal-quote the publication
Browse files Browse the repository at this point in the history
  • Loading branch information
passcod committed Jan 15, 2025
1 parent 8968e6d commit c7d993b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pg_replicate/src/clients/postgres.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,10 @@ impl ReplicationClient {
select unnest(r.prattrs)
from pg_publication_rel r
left join pg_publication p on r.prpubid = p.oid
where p.pubname = '{publication}'
where p.pubname = {publication}
and r.prrelid = {table_id}
)"
)",
publication=quote_literal(publication),
),
"and (
case (select count(*) from pub_attrs)
Expand Down

0 comments on commit c7d993b

Please sign in to comment.