summaryrefslogtreecommitdiff
path: root/framework/Data/Common/Mssql/TMssqlMetaData.php
diff options
context:
space:
mode:
authorchristophe.boulain <>2011-01-19 14:02:27 +0000
committerchristophe.boulain <>2011-01-19 14:02:27 +0000
commitc5c397a55dd9d9026247377c3a0daa7517393d06 (patch)
treebfdd46703f7cb29b1043ef614d819f391754d36c /framework/Data/Common/Mssql/TMssqlMetaData.php
parentbcb739cb347c609d75eaa8c27db1b1b5619bba35 (diff)
Raise an exception when DB driver doesn't support changing charset.
Also some minor MSSQL fixes
Diffstat (limited to 'framework/Data/Common/Mssql/TMssqlMetaData.php')
-rw-r--r--framework/Data/Common/Mssql/TMssqlMetaData.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/Data/Common/Mssql/TMssqlMetaData.php b/framework/Data/Common/Mssql/TMssqlMetaData.php
index 8309e4ec..2751caf3 100644
--- a/framework/Data/Common/Mssql/TMssqlMetaData.php
+++ b/framework/Data/Common/Mssql/TMssqlMetaData.php
@@ -53,9 +53,9 @@ class TMssqlMetaData extends TDbMetaData
AND t.table_name = :table
EOD;
if($schemaName!==null)
- $sql .= ' AND t.schema_name = :schema';
+ $sql .= ' AND t.table_schema = :schema';
if($catalogName!==null)
- $sql .= ' AND t.catalog_name = :catalog';
+ $sql .= ' AND t.table_catalog = :catalog';
$command = $this->getDbConnection()->createCommand($sql);
$command->bindValue(':table', $tableName);