diff --git a/db/sql.php b/db/sql.php index d3d79dd1..692f3938 100644 --- a/db/sql.php +++ b/db/sql.php @@ -375,6 +375,7 @@ function schema($table,$fields=NULL,$ttl=0) { ('AND K.TABLE_CATALOG=T.TABLE_CATALOG '):''). 'WHERE '. 'C.TABLE_NAME='.$this->quote($table). + (empty($schema) ?: ' AND C.TABLE_SCHEMA='.$this->quote($schema)). ($this->dbname? (' AND C.TABLE_CATALOG='. $this->quote($this->dbname)):''),