How to use parameters in TpgScript?
Posted: Fri 10 Nov 2017 15:49
I'm evaluating pgDAC to replace FireDAC, which I just use to execute a script that creates a new pg schema from a metadata.sql file.
In FireDAC I used &1 in the .sql file and then used:
This would replace &1 to 'schema_name' in the script.
I tried using Params in TpgScript but the param values where just ignored, what's the correct way to replace a param in a script?
In FireDAC I used &1 in the .sql file and then used:
Code: Select all
Script.Arguments.Add('schema_name');
I tried using Params in TpgScript but the param values where just ignored, what's the correct way to replace a param in a script?