From 32e370d09e9c3353847df679ef2ea22426dce33f Mon Sep 17 00:00:00 2001 From: "ctrlaltca@gmail.com" <> Date: Sat, 12 Nov 2011 16:12:40 +0000 Subject: fix for #284 --- framework/Data/Common/Mysql/TMysqlMetaData.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/Data/Common/Mysql/TMysqlMetaData.php b/framework/Data/Common/Mysql/TMysqlMetaData.php index 5eba540d..1d8c86a2 100644 --- a/framework/Data/Common/Mysql/TMysqlMetaData.php +++ b/framework/Data/Common/Mysql/TMysqlMetaData.php @@ -293,7 +293,7 @@ class TMysqlMetaData extends TDbMetaData */ protected function getForeignConstraints($schemaName, $tableName) { - $andSchema = $schemaName !== null ? 'AND TABLE_SCHEMA LIKE :schema' : ''; + $andSchema = $schemaName !== null ? 'AND TABLE_SCHEMA LIKE :schema' : 'AND TABLE_SCHEMA LIKE DATABASE()'; $sql = <<