Skip to content

Commit

Permalink
Add TABLE_SCHEMA to the WHERE clause.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Henke authored and ikkez committed Dec 29, 2024
1 parent 5361455 commit 9c7695d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions db/sql.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)):''),
Expand Down

0 comments on commit 9c7695d

Please sign in to comment.