From 2d0807bc1c72c1351f57d7f65386ad7be9d19e83 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 8 Oct 2010 16:36:32 -0700 Subject: Starting on adapting postgresql schema class to look stuff up in the new drupalish format... Fetching basic column data and unique indexes. Still needs detail work, multi-value indexes, foreign keys, and distinguishing the primary key. Since we don't get comments and such, for cleaner comparisons we should probably do a filtering on supported features. --- lib/mysqlschema.php | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'lib/mysqlschema.php') diff --git a/lib/mysqlschema.php b/lib/mysqlschema.php index 696b2b8d2..98e276a40 100644 --- a/lib/mysqlschema.php +++ b/lib/mysqlschema.php @@ -243,29 +243,6 @@ class MysqlSchema extends Schema return $this->fetchQueryData($sql); } - /** - * Pull info from the query into a fun-fun array of dooooom - * - * @param string $sql - * @return array of arrays - */ - protected function fetchQueryData($sql) - { - $res = $this->conn->query($sql); - if (PEAR::isError($res)) { - throw new Exception($res->getMessage()); - } - - $out = array(); - $row = array(); - while ($res->fetchInto($row, DB_FETCHMODE_ASSOC)) { - $out[] = $row; - } - $res->free(); - - return $out; - } - /** * Creates a table with the given names and columns. * -- cgit v1.2.3-54-g00ecf