BUG #5571: global hash %_SHARED is not declared as global in the new version

Поиск
Список
Период
Сортировка
От mile
Тема BUG #5571: global hash %_SHARED is not declared as global in the new version
Дата
Msg-id 201007260958.o6Q9w5pA056077@wwwmaster.postgresql.org
обсуждение исходный текст
Ответы Re: BUG #5571: global hash %_SHARED is not declared as global in the new version  (Alex Hunsaker <badalex@gmail.com>)
Список pgsql-bugs
The following bug has been logged online:

Bug reference:      5571
Logged by:          mile
Email address:      mile@avangardsolutions.com
PostgreSQL version: v9.0beta3
Operating system:   Linux
Description:        global hash %_SHARED is not declared as global in the
new version
Details:

We are using strict pragma that's why we are geting the following  error:
ERROR: Global symbol %_SHARED requires explicit package name


However we should not get that error message because
the hash $_SHARED should be declared as global variable.

To reproduce this use the following function:

create or replace function perl_shared() returns void as $$
use strict;
elog(INFO, $_SHARED{'stuff'});
$_SHARED{'stuff'} = '1';
for my $k (keys %_SHARED)
{
    elog(INFO, $k);
}
$$ language plperl;


CREATE LANGUAGE plperl;

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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: pg_upgrade issues
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: pg_upgrade issues