Re: plperl error format vs plpgsql error format vs pgTAP

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: plperl error format vs plpgsql error format vs pgTAP
Дата
Msg-id 603c8f070905290835w6a594609g33d06d635b8765d@mail.gmail.com
обсуждение исходный текст
Ответ на Re: plperl error format vs plpgsql error format vs pgTAP  (Kevin Field <kevinjamesfield@gmail.com>)
Список pgsql-hackers
On Fri, May 29, 2009 at 7:59 AM, Kevin Field <kevinjamesfield@gmail.com> wrote:
> On May 28, 5:19 pm, da...@kineticode.com ("David E. Wheeler") wrote:
>> On May 28, 2009, at 12:53 PM, Kevin Field wrote:
>>
>> >> Can pgTap check for a regex instead if just a string?
>>
>> > That's the other option, if the pgTAP author is willing...if the
>> > SQLSTATE thing doesn't work out I guess we'll have to go down that
>> > road.
>>
>> Patches welcome. ;-)
>>
>>    http://github.com/theory/pgtap/tree/master/
>>
>> I'm getting a new version ready to release as I type.
>
> Thanks, great to know.  :)  Although, I do think changing plperl is
> the more proper option, so I'm going to try there first...

It seems to me that removing line numbers from PL/perl error messages
is not a good solution to anything.  Line numbers are extremely useful
for debugging purposes, and getting rid of them because one particular
testing framework doesn't know how to use regular expressions is
solving the wrong problem.

I'm also a bit confused because your original post had a line number
in the PL/pgsql output, too, just formatted slightly differently.  Why
doesn't that one cause a problem?

...Robert


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

Предыдущее
От: Aidan Van Dyk
Дата:
Сообщение: Re: PostgreSQL Developer meeting minutes up
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: plperl error format vs plpgsql error format vs pgTAP