From f7f4ece048246579a2ec2df9708329b60c58aac2 Mon Sep 17 00:00:00 2001 From: Michael Henke <49809-mhdev90@users.noreply.drupalcode.org> Date: Fri, 3 May 2024 14:07:47 +0200 Subject: [PATCH] Add TABLE_SCHEMA to the WHERE clause. --- db/sql.php | 1 + 1 file changed, 1 insertion(+) 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)):''),