Fix non-standard escape warning
authorxzilla <xzilla>
Wed, 19 Sep 2007 15:31:18 +0000 (15:31 +0000)
committerxzilla <xzilla>
Wed, 19 Sep 2007 15:31:18 +0000 (15:31 +0000)
classes/database/Postgres73.php

index e9cdbb658dc814346667eab5c550aa07b546264b..62c83f3d344924920bb4932af1fc55cf440eff1b 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.167 2007/09/19 14:42:12 ioguix Exp $
+ * $Id: Postgres73.php,v 1.168 2007/09/19 15:31:18 xzilla Exp $
  */
 
 // @@@ THOUGHT: What about inherits? ie. use of ONLY???
@@ -1220,7 +1220,7 @@ class Postgres73 extends Postgres72 {
        
                // get the max number of col used in a constraint for the table
        $sql = "SELECT DISTINCT
-             max(SUBSTRING(array_dims(c.conkey) FROM  '^\\\[.*:(.*)\\\]$')) as nb
+             max(SUBSTRING(array_dims(c.conkey) FROM  E'^\\\[.*:(.*)\\\]$')) as nb
        FROM
              pg_catalog.pg_constraint AS c
          JOIN pg_catalog.pg_class AS r ON (c.conrelid = r.oid)