fix function properties
authorchriskl <chriskl>
Sun, 3 Aug 2003 07:18:01 +0000 (07:18 +0000)
committerchriskl <chriskl>
Sun, 3 Aug 2003 07:18:01 +0000 (07:18 +0000)
classes/database/Postgres73.php

index ccd4edcff72d8b913b11392223c3d148f847999a..7197b66080c85c8f896b42cf2a990de3300e1309 100644 (file)
@@ -4,7 +4,7 @@
  * A class that implements the DB interface for Postgres
  * Note: This class uses ADODB and returns RecordSets.
  *
- * $Id: Postgres73.php,v 1.53 2003/07/31 08:28:03 chriskl Exp $
+ * $Id: Postgres73.php,v 1.54 2003/08/03 07:18:01 chriskl Exp $
  */
 
 // @@@ THOUGHT: What about inherits? ie. use of ONLY???
@@ -586,12 +586,14 @@ class Postgres73 extends Postgres72 {
                        return -1;
                
                // Null handling
+               $f['proisstrict'] = $this->phpBool($f['proisstrict']);
                if ($f['proisstrict'])
                        $temp[] = 'RETURNS NULL ON NULL INPUT';
                else
                        $temp[] = 'CALLED ON NULL INPUT';
                
                // Security
+               $f['prosecdef'] = $this->phpBool($f['prosecdef']);
                if ($f['prosecdef'])
                        $temp[] = 'SECURITY DEFINER';
                else
@@ -909,9 +911,9 @@ class Postgres73 extends Postgres72 {
                                pg_catalog.pg_type t
                        WHERE 
                                t.typtype = 'd'
-                               AND t.typname = '{$domain}'\r
+                               AND t.typname = '{$domain}'
                                AND t.typnamespace = (SELECT oid FROM pg_catalog.pg_namespace
-                                       WHERE nspname = '{$this->_schema}')";\r
+                                       WHERE nspname = '{$this->_schema}')";
 
                return $this->selectSet($sql);          
        }
@@ -931,10 +933,10 @@ class Postgres73 extends Postgres72 {
                        FROM 
                                pg_catalog.pg_type t
                        WHERE 
-                               t.typtype = 'd'\r
+                               t.typtype = 'd'
                                AND t.typnamespace = (SELECT oid FROM pg_catalog.pg_namespace
-                                       WHERE nspname='{$this->_schema}')\r
-                       ORDER BY t.typname";\r
+                                       WHERE nspname='{$this->_schema}')
+                       ORDER BY t.typname";
 
                return $this->selectSet($sql);
        }