From c31900c9c909f42b722bfb03b164d548b602cdd4 Mon Sep 17 00:00:00 2001 From: wei <> Date: Mon, 8 Oct 2007 00:59:27 +0000 Subject: Fixed #716 --- framework/Data/Common/Pgsql/TPgsqlMetaData.php | 6 +++--- framework/Data/Common/Sqlite/TSqliteMetaData.php | 2 +- framework/Data/Common/TDbMetaData.php | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'framework') diff --git a/framework/Data/Common/Pgsql/TPgsqlMetaData.php b/framework/Data/Common/Pgsql/TPgsqlMetaData.php index 9b6a5cdf..80c38d60 100644 --- a/framework/Data/Common/Pgsql/TPgsqlMetaData.php +++ b/framework/Data/Common/Pgsql/TPgsqlMetaData.php @@ -330,6 +330,7 @@ EOD; */ protected function getPrimaryKeys($tableName, $schemaName, $columnIndex) { + $index = join(', ', split(' ', $columnIndex)); $sql = <<getDbConnection()->createCommand($sql); $command->bindValue(':table', $tableName); $command->bindValue(':schema', $schemaName); - $command->bindValue(':columnIndex', join('\',\'', split(' ', $columnIndex))); - +// $command->bindValue(':columnIndex', join(', ', split(' ', $columnIndex))); $primary = array(); foreach($command->query() as $row) { diff --git a/framework/Data/Common/Sqlite/TSqliteMetaData.php b/framework/Data/Common/Sqlite/TSqliteMetaData.php index aa2ed724..3b63fcef 100644 --- a/framework/Data/Common/Sqlite/TSqliteMetaData.php +++ b/framework/Data/Common/Sqlite/TSqliteMetaData.php @@ -177,5 +177,5 @@ CREATE TABLE bar CONSTRAINT fk_foo_id REFERENCES foo(id) ON DELETE CASCADE ); */ - + ?> \ No newline at end of file diff --git a/framework/Data/Common/TDbMetaData.php b/framework/Data/Common/TDbMetaData.php index 660e65f0..24079e6d 100644 --- a/framework/Data/Common/TDbMetaData.php +++ b/framework/Data/Common/TDbMetaData.php @@ -1,4 +1,4 @@ - \ No newline at end of file -- cgit v1.2.3