From a32e61995eda7efb4c0c3e0ed952480e56160a31 Mon Sep 17 00:00:00 2001 From: rojaro <> Date: Tue, 15 Jun 2010 14:09:37 +0000 Subject: Fixing #268 --- framework/Data/Common/Mysql/TMysqlMetaData.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'framework') diff --git a/framework/Data/Common/Mysql/TMysqlMetaData.php b/framework/Data/Common/Mysql/TMysqlMetaData.php index fad33cea..0e17f52c 100644 --- a/framework/Data/Common/Mysql/TMysqlMetaData.php +++ b/framework/Data/Common/Mysql/TMysqlMetaData.php @@ -263,7 +263,7 @@ class TMysqlMetaData extends TDbMetaData */ protected function getForeignConstraints($schemaName, $tableName) { - $andSchema = $schemaName !== null ? 'AND TABLE_SCHEMA = :schema' : ''; + $andSchema = $schemaName !== null ? 'AND TABLE_SCHEMA LIKE :schema' : ''; $sql = <<getDbConnection()->createCommand($sql); -- cgit v1.2.3