summaryrefslogtreecommitdiff
path: root/lib/mysqlschema.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-10-08 16:36:32 -0700
committerBrion Vibber <brion@pobox.com>2010-10-08 16:36:32 -0700
commit2d0807bc1c72c1351f57d7f65386ad7be9d19e83 (patch)
tree158de9dbf8294a3989c576023572aa0bf7ce912d /lib/mysqlschema.php
parentefa8ff82f4a364f6ba183a683431e9d83652cd9f (diff)
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.
Diffstat (limited to 'lib/mysqlschema.php')
-rw-r--r--lib/mysqlschema.php23
1 files changed, 0 insertions, 23 deletions
diff --git a/lib/mysqlschema.php b/lib/mysqlschema.php
index 696b2b8d2..98e276a40 100644
--- a/lib/mysqlschema.php
+++ b/lib/mysqlschema.php
@@ -244,29 +244,6 @@ class MysqlSchema extends Schema
}
/**
- * 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.
*
* @param string $name Name of the table