Invoke mksafefunc and mkunsafefunc with :: decoration. This seems a good
authorTom Lane
Sat, 20 Aug 2005 19:19:21 +0000 (19:19 +0000)
committerTom Lane
Sat, 20 Aug 2005 19:19:21 +0000 (19:19 +0000)
idea on consistency grounds, whether or not it really fixes bug #1831.
Michael Fuhr

src/pl/plperl/plperl.c

index 11c0a5bc3849cbb40bf60992ba29962e5482cafd..9ca83281402cf2c2150813fe7bde656a52718d28 100644 (file)
@@ -33,7 +33,7 @@
  *   ENHANCEMENTS, OR MODIFICATIONS.
  *
  * IDENTIFICATION
- *   $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.89 2005/08/12 21:26:32 tgl Exp $
+ *   $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.90 2005/08/20 19:19:21 tgl Exp $
  *
  **********************************************************************/
 
@@ -680,7 +680,7 @@ plperl_create_sub(char *s, bool trusted)
     * errors properly.  Perhaps it's because there's another level of
     * eval inside mksafefunc?
     */
-   count = perl_call_pv((trusted ? "mksafefunc" : "mkunsafefunc"),
+   count = perl_call_pv((trusted ? "::mksafefunc" : "::mkunsafefunc"),
                         G_SCALAR | G_EVAL | G_KEEPERR);
    SPAGAIN;