From 9af9e3de8851ee43ef77c90205bd1cfe9af15358 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 8 Jan 2009 09:52:12 +0000 Subject: - Patch #342503 by Josh Waihi, Damien Tournoud et al: schema function findTables fails on PostgreSQL. --- includes/database/pgsql/schema.inc | 8 -------- 1 file changed, 8 deletions(-) (limited to 'includes/database/pgsql') diff --git a/includes/database/pgsql/schema.inc b/includes/database/pgsql/schema.inc index cbbf36dc9..00f4b9fef 100644 --- a/includes/database/pgsql/schema.inc +++ b/includes/database/pgsql/schema.inc @@ -13,14 +13,6 @@ class DatabaseSchema_pgsql extends DatabaseSchema { - public function tableExists($table) { - return (bool) db_result(db_query("SELECT COUNT(*) FROM pg_class WHERE relname = '{" . db_escape_table($table) . "}'")); - } - - public function columnExists($table, $column) { - return (bool) db_result(db_query("SELECT COUNT(pg_attribute.attname) FROM pg_class, pg_attribute WHERE pg_attribute.attrelid = pg_class.oid AND pg_class.relname = '{" . db_escape_table($table) . "}' AND attname = '" . db_escape_table($column) . "'")); - } - /** * Generate SQL to create a new table from a Drupal schema definition. * -- cgit v1.2.3