Index: trunk/phase3/includes/db/DatabasePostgres.php |
— | — | @@ -213,7 +213,7 @@ |
214 | 214 | |
215 | 215 | function hasConstraint( $name ) { |
216 | 216 | $SQL = "SELECT 1 FROM pg_catalog.pg_constraint c, pg_catalog.pg_namespace n WHERE c.connamespace = n.oid AND conname = '" . |
217 | | - pg_escape_string( $this->mConn, $name ) . "' AND n.nspname = '" . pg_escape_string( $this->mConn, $this->mConn->getCoreSchema() ) ."'"; |
| 217 | + pg_escape_string( $this->mConn, $name ) . "' AND n.nspname = '" . pg_escape_string( $this->mConn, $this->getCoreSchema() ) ."'"; |
218 | 218 | $res = $this->doQuery( $SQL ); |
219 | 219 | return $this->numRows( $res ); |
220 | 220 | } |