You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to run pgsync with a variable that is a list? e.g.
groups:
product:
products: "where id in {1}"
and
pgsync product:\(123,456\)
This syntax works if only 1 value is passed in to the variable, since the SQL evaluates to where id in (123), which is valid. But it looks like if there's a comma anywhere, it gets treated as a delimiter for a table name, so I get the error
Table not found in source: 456)
(Trying to escape the comma like \, or putting quotes " around the whole string does not make a difference.)
Thank you!
Hi,
Is it possible to run pgsync with a variable that is a list? e.g.
and
This syntax works if only 1 value is passed in to the variable, since the SQL evaluates to
where id in (123)
, which is valid. But it looks like if there's a comma anywhere, it gets treated as a delimiter for a table name, so I get the error(Trying to escape the comma like
\,
or putting quotes " around the whole string does not make a difference.)Thank you!
https://github.com/ankane/pgsync?tab=readme-ov-file#variables
The text was updated successfully, but these errors were encountered: