[ERROR] syntax error at end of input

Поиск
Список
Период
Сортировка
От Marcelo de Moraes Serpa
Тема [ERROR] syntax error at end of input
Дата
Msg-id 1e5bcefd0708270540p5a45ae19h5e43568cadb373ea@mail.gmail.com
обсуждение исходный текст
Ответы Re: [ERROR] syntax error at end of input
Re: [ERROR] syntax error at end of input
Список pgsql-general
Hello list,

I'm trying to execute the following sentences in a pl/pgsql function. aNomeProcAudita and pTabAudit are both variables.

           DROP FUNCTION IF EXISTS aNomeProcAudita;
           DROP TRIGGER IF EXISTS 'Audita_' || pTabAudit || '_trigger';


When I try to create this function without these two sentences, everything goes ok, however, when I've got these two sql senteces, I get the following error:

ERROR: syntax error at end of input

Is there anything wrong with the code?

Thanks in advance,

Marcelo.

В списке pgsql-general по дате отправления:

Предыдущее
От: "Marcelo de Moraes Serpa"
Дата:
Сообщение: Re: create or replace for tables and schemas
Следующее
От: Alban Hertroys
Дата:
Сообщение: Re: SQL Diff ?