summaryrefslogtreecommitdiff
path: root/framework/Testing/Data/Schema
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/Testing/Data/Schema
parentbcb739cb347c609d75eaa8c27db1b1b5619bba35 (diff)
Raise an exception when DB driver doesn't support changing charset.
Also some minor MSSQL fixes
Diffstat (limited to 'framework/Testing/Data/Schema')
-rwxr-xr-xframework/Testing/Data/Schema/mssql/TMssqlSchema.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/Testing/Data/Schema/mssql/TMssqlSchema.php b/framework/Testing/Data/Schema/mssql/TMssqlSchema.php
index 1b3d815c..d728a6ce 100755
--- a/framework/Testing/Data/Schema/mssql/TMssqlSchema.php
+++ b/framework/Testing/Data/Schema/mssql/TMssqlSchema.php
@@ -10,6 +10,7 @@
*/
prado::using('System.Testing.Data.Schema.TDbSchema');
+prado::using('System.Testing.Data.Schema.mssql.*');
/**
* TMssqlSchema is the class for retrieving metadata information from a MS SQL Server database.
@@ -286,7 +287,7 @@ SELECT TABLE_NAME, TABLE_SCHEMA FROM [INFORMATION_SCHEMA].[TABLES]
WHERE TABLE_TYPE='BASE TABLE' AND TABLE_SCHEMA=:schema
EOD;
$command=$this->getDbConnection()->createCommand($sql);
- $command->bindParam(":schema", $schema);
+ $command->bindParameter(":schema", $schema);
$rows=$command->queryAll();
$names=array();
foreach ($rows as $row)