Skip to content

Commit

Permalink
Use the correct operator to add TABLE_SCHEMA to WHERE
Browse files Browse the repository at this point in the history
  • Loading branch information
mkody authored and ikkez committed Dec 30, 2024
1 parent 079c422 commit c8b97d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/sql.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)):''),
Expand Down

0 comments on commit c8b97d8

Please sign in to comment.