Tested on 7.3 on demo server and looks like it works ok. I am sure there are others.
* A class that implements the DB interface for Postgres
* Note: This class uses ADODB and returns RecordSets.
*
- * $Id: Postgres73.php,v 1.158 2006/08/09 21:19:44 xzilla Exp $
+ * $Id: Postgres73.php,v 1.159 2006/09/24 23:42:41 xzilla Exp $
*/
// @@@ THOUGHT: What about inherits? ie. use of ONLY???
else
$where = "n.nspname = '{$this->_schema}'";
// Never show system table types
- $where2 = "AND c.relnamespace NOT IN (SELECT oid FROM pg_catalog.pg_namespace WHERE nspname LIKE 'pg\\\\_%')";
+ $where2 = "AND c.relnamespace NOT IN (SELECT oid FROM pg_catalog.pg_namespace WHERE nspname LIKE 'pg@_%' ESCAPE '@')";
// Create type filter
$tqry = "'c'";
* A class that implements the DB interface for Postgres
* Note: This class uses ADODB and returns RecordSets.
*
- * $Id: Postgres74.php,v 1.54 2006/08/13 15:31:13 xzilla Exp $
+ * $Id: Postgres74.php,v 1.55 2006/09/24 23:42:41 xzilla Exp $
*/
include_once('./classes/database/Postgres73.php');
global $conf, $slony;
if (!$conf['show_system']) {
- $where = "WHERE nspname NOT LIKE 'pg\\\\_%' AND nspname != 'information_schema'";
+ $where = "WHERE nspname NOT LIKE 'pg@_%' ESCAPE '@' AND nspname != 'information_schema'";
if (isset($slony) && $slony->isEnabled()) {
$temp = $slony->slony_schema;
$this->clean($temp);
/**
* A class that implements the Slony 1.0.x support plugin
*
- * $Id: Slony.php,v 1.10 2006/09/14 20:54:27 xzilla Exp $
+ * $Id: Slony.php,v 1.11 2006/09/24 23:42:41 xzilla Exp $
*/
include_once('./classes/plugins/Plugin.php');
WHERE pp.pronamespace=pn.oid
AND pn.nspowner = pu.usesysid
AND pp.proname='slonyversion'
- AND pn.nspname LIKE '\\\\_%'
+ AND pn.nspname LIKE '@_%' ESCAPE '@'
ORDER BY pn.nspname LIMIT 1";
$rs = $data->selectSet($sql);
if ($rs->recordCount() == 1) {