* 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???
// 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)