From d297de1c27c94088e674198baf60ad8a2914b954 Mon Sep 17 00:00:00 2001 From: thomasb Date: Fri, 25 Feb 2011 16:37:22 +0000 Subject: Create interactive update script with improved DB schema check; udated installer with new features and styles git-svn-id: https://svn.roundcube.net/trunk@4573 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/include/rcube_mdb2.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'roundcubemail/program/include') diff --git a/roundcubemail/program/include/rcube_mdb2.php b/roundcubemail/program/include/rcube_mdb2.php index c56a86e37..85a70cad3 100644 --- a/roundcubemail/program/include/rcube_mdb2.php +++ b/roundcubemail/program/include/rcube_mdb2.php @@ -412,6 +412,23 @@ class rcube_mdb2 } + /** + * Wrapper for SHOW COLUMNS command + * + * @param string Table name + * @return array List of table cols + */ + function list_cols($table) + { + $this->db_handle->loadModule('Manager'); + if (!PEAR::isError($result = $this->db_handle->listTableFields($table))) { + return $result; + } + + return null; + } + + /** * Formats input so it can be safely used in a query * -- cgit v1.2.3