mirror of
https://github.com/postgres/postgres.git
synced 2025-07-03 20:02:46 +03:00
translate undef to NULL for result arrayref, now that we allow NULLs in arrays. Update plperl regression test accordingly.
This commit is contained in:
@ -33,7 +33,7 @@
|
||||
* ENHANCEMENTS, OR MODIFICATIONS.
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.94 2005/10/18 17:13:14 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.95 2005/11/18 17:00:28 adunstan Exp $
|
||||
*
|
||||
**********************************************************************/
|
||||
|
||||
@ -207,12 +207,16 @@ plperl_init_all(void)
|
||||
" { " \
|
||||
" $res .= _plperl_to_pg_array($elem); " \
|
||||
" } " \
|
||||
" else " \
|
||||
" elsif (defined($elem)) " \
|
||||
" { " \
|
||||
" my $str = qq($elem); " \
|
||||
" $str =~ s/([\"\\\\])/\\\\$1/g; " \
|
||||
" $res .= qq(\"$str\"); " \
|
||||
" } " \
|
||||
" else " \
|
||||
" { "\
|
||||
" $res .= 'NULL' ; " \
|
||||
" } "\
|
||||
" } " \
|
||||
" return qq({$res}); " \
|
||||
"} "
|
||||
|
Reference in New Issue
Block a user