diff --git a/src/Schema/OracleSchema.php b/src/Schema/OracleSchema.php index af441cb..da1a9b9 100644 --- a/src/Schema/OracleSchema.php +++ b/src/Schema/OracleSchema.php @@ -410,10 +410,15 @@ public function indexSql(Table $table, $name) */ public function listTablesSql($config) { + if ($this->_driver->autoQuoting()) { + $column = 'table_name'; + } else { + $column = 'LOWER(table_name)'; + } if (empty($config['schema'])) { - return ['SELECT table_name FROM sys.user_tables', []]; + return ["SELECT {$column} FROM sys.user_tables", []]; } - return ['SELECT table_name FROM sys.all_tables WHERE owner = :bindOwner', [':bindOwner' => strtoupper($config['schema'])]]; + return ["SELECT {$column} FROM sys.all_tables WHERE owner = :bindOwner", [':bindOwner' => strtoupper($config['schema'])]]; } /**