Hi,
In previous versions of Ballerina, I used to disable an Oracle constraints like this.
string sqlStr = "ALTER TABLE TABLE_NAME DISABLE CONSTRAINT " + constraintName;
And works well.
Now, the only way is using sql:ParameterizedQuery
sql:ParameterizedQuery sqlExec = ALTER TABLE IDN_OIDC_PROPERTY DISABLE CONSTRAINT ${constraintName};
But, Oracle respond an error because the constraint name can't be passed as parameter.
In each database, I don't know the name of the constraint, so so a select to the table.
SELECT constraint_name FROM user_constraints
WHERE table_name = 'TABLE_NAME'
and r_constraint_name = 'CONSUMER_KEY_CONSTRAINT'
Could you help me with this?
Thanks