From c8b97d8ff7b2f374bd32833af8f89d6f72710b8e Mon Sep 17 00:00:00 2001 From: Kody Date: Mon, 30 Dec 2024 17:44:58 +0100 Subject: [PATCH] Use the correct operator to add TABLE_SCHEMA to WHERE --- db/sql.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/sql.php b/db/sql.php index 21fc73dc..780edb2c 100644 --- a/db/sql.php +++ b/db/sql.php @@ -375,7 +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)). + (empty($schema) ? '' : ' AND C.TABLE_SCHEMA='.$this->quote($schema)). ($this->dbname? (' AND C.TABLE_CATALOG='. $this->quote($this->dbname)):''),