summaryrefslogtreecommitdiff
path: root/drivers/adodb-postgres7.inc.php
diff options
context:
space:
mode:
authorDamien Regad <dregad@mantisbt.org>2021-11-07 15:05:37 +0100
committerDamien Regad <dregad@mantisbt.org>2021-11-07 15:05:37 +0100
commit88796d63bc11d2e8cdf8a33490bf8b41ee06019f (patch)
tree67014d1ec96d14dce46450a552cca354f18b5696 /drivers/adodb-postgres7.inc.php
parent599a0326923348e9f41050b71507b7d82fed86aa (diff)
downloadadodb-88796d63bc11d2e8cdf8a33490bf8b41ee06019f.tar.gz
adodb-88796d63bc11d2e8cdf8a33490bf8b41ee06019f.tar.bz2
adodb-88796d63bc11d2e8cdf8a33490bf8b41ee06019f.zip
Removed ADODB_postgres7::_old_MetaForeignKeys()
Method is not used anywhere.
Diffstat (limited to 'drivers/adodb-postgres7.inc.php')
-rw-r--r--drivers/adodb-postgres7.inc.php35
1 files changed, 0 insertions, 35 deletions
diff --git a/drivers/adodb-postgres7.inc.php b/drivers/adodb-postgres7.inc.php
index 4e7e87a6..e408f208 100644
--- a/drivers/adodb-postgres7.inc.php
+++ b/drivers/adodb-postgres7.inc.php
@@ -202,41 +202,6 @@ class ADODB_postgres7 extends ADODB_postgres64 {
}
return $a;
-
- }
-
- // from Edward Jaramilla, improved version - works on pg 7.4
- function _old_MetaForeignKeys($table, $owner=false, $upper=false)
- {
- $sql = 'SELECT t.tgargs as args
- FROM
- pg_trigger t,pg_class c,pg_proc p
- WHERE
- t.tgenabled AND
- t.tgrelid = c.oid AND
- t.tgfoid = p.oid AND
- p.proname = \'RI_FKey_check_ins\' AND
- c.relname = \''.strtolower($table).'\'
- ORDER BY
- t.tgrelid';
-
- $rs = $this->Execute($sql);
-
- if (!$rs || $rs->EOF) return false;
-
- $arr = $rs->GetArray();
- $a = array();
- foreach($arr as $v) {
- $data = explode(chr(0), $v['args']);
- $size = count($data)-1; //-1 because the last node is empty
- for($i = 4; $i < $size; $i++) {
- if ($upper)
- $a[strtoupper($data[2])][] = strtoupper($data[$i].'='.$data[++$i]);
- else
- $a[$data[2]][] = $data[$i].'='.$data[++$i];
- }
- }
- return $a;
}
function _query($sql,$inputarr=false)