From 37e772cb8582fe772dbea72286874cf5335dd895 Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Tue, 15 Apr 2014 08:34:36 +0200 Subject: Fix #519 (cherry picked from commit 3abca1f10ace63b2daa93870f17049c047b53abe) --- framework/Data/Common/Mysql/TMysqlMetaData.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'framework') diff --git a/framework/Data/Common/Mysql/TMysqlMetaData.php b/framework/Data/Common/Mysql/TMysqlMetaData.php index 820c23d6..b3ee3d08 100644 --- a/framework/Data/Common/Mysql/TMysqlMetaData.php +++ b/framework/Data/Common/Mysql/TMysqlMetaData.php @@ -76,6 +76,9 @@ class TMysqlMetaData extends TDbMetaData { list($schemaName,$tableName) = $this->getSchemaTableName($table); $find = $schemaName===null ? "`{$tableName}`" : "`{$schemaName}`.`{$tableName}`"; + $colCase = $this->getDbConnection()->getColumnCase(); + if($colCase != TDbColumnCaseMode::Preserved) + $this->getDbConnection()->setColumnCase('Preserved'); $this->getDbConnection()->setActive(true); $sql = "SHOW FULL FIELDS FROM {$find}"; $command = $this->getDbConnection()->createCommand($sql); @@ -88,6 +91,8 @@ class TMysqlMetaData extends TDbMetaData } if($index===0) throw new TDbException('dbmetadata_invalid_table_view', $table); + if($colCase != TDbColumnCaseMode::Preserved) + $this->getDbConnection()->setColumnCase($colCase); return $tableInfo; } -- cgit v1.2.3