Re: another plperl bug
| От | Michael Fuhr |
|---|---|
| Тема | Re: another plperl bug |
| Дата | |
| Msg-id | 20041123181511.GA34033@winnie.fuhr.org обсуждение исходный текст |
| Ответ на | Re: another plperl bug (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: another plperl bug
|
| Список | pgsql-hackers |
On Tue, Nov 23, 2004 at 11:37:22AM -0500, Tom Lane wrote: > $ perl -e 'print ["test 1"], "\n"' > ARRAY(0xa03ec28) > $ > > so I don't think a Perl programmer would find it surprising; if anything > he'd probably complain if we *didn't* do that. Understood, which is why I mentioned that such cases might be considered GIGO and therefore not plperl's responsibility. Personally I'd like to see an error or warning since the result is near useless and the construct almost certainly not what the programmer meant, but I recognize that not everybody would. > I would add these test cases to the regression test were it not that the > addresses are machine-dependent... I haven't looked into how the regression tests work -- can test output be post-processed before comparision with expected results? If so, then a filter could normalize patterns like ARRAY(0xa03ec28) into something that would pass regression tests. -- Michael Fuhr http://www.fuhr.org/~mfuhr/
В списке pgsql-hackers по дате отправления: