0

The following Statement show error

EXECUTE quote_ident('Calculate' || calc_type_row."Name") || '($1,$2)' USING calc_type_row."IntervalTypeId",'Meter';

Name, IntervalTypeId are column in a table.

2
  • 1
    please specify the error message Commented Jun 22, 2015 at 8:05
  • syntax error at or near ""CalculateTotal"" Commented Jun 22, 2015 at 8:42

1 Answer 1

3

The statement EXECUTE is expecting valid SQL statement - in this case SELECT statement. So you are missing SELECT keyword:

EXECUTE format ('SELECT %I($1, $2)', 'Calculate' || calc_type."Name") USING ...
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.