Re: deallocate statement failing

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: rob stone <floriparob(at)gmail(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: deallocate statement failing
Date: 2020-02-07 05:48:42
Message-ID: 30795.1581054522@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

rob stone <floriparob(at)gmail(dot)com> writes:
> 2020-02-07 15:42:55 AEDT ERROR: syntax error at or near
> "'AIT1581050529'" at character 13
> 2020-02-07 15:42:55 AEDT STATEMENT: DEALLOCATE 'AIT1581050529'

> The deallocate statement fails. It doesn't matter if it is just
> "DEALLOCATE" or "DEALLOCATE PREPARE".

I think you want double quotes not single quotes. The argument
of DEALLOCATE is an SQL identifier, not a string literal.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message rob stone 2020-02-07 06:46:25 Re: deallocate statement failing
Previous Message Adrian Klaver 2020-02-07 05:15:03 Re: deallocate statement failing