From 9ef3560f5aec33184b5ad6fd3eedcea6b4d4ece8 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Tue, 19 Nov 2013 18:03:52 -0500 Subject: [PATCH] Fixed test break. --- framework/yii/db/pgsql/Schema.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/yii/db/pgsql/Schema.php b/framework/yii/db/pgsql/Schema.php index aa3cdc9..d7885f2 100644 --- a/framework/yii/db/pgsql/Schema.php +++ b/framework/yii/db/pgsql/Schema.php @@ -288,7 +288,7 @@ FROM LEFT JOIN pg_namespace d ON d.oid = c.relnamespace LEFT join pg_constraint ct on ct.conrelid=c.oid and ct.contype='p' WHERE - a.attnum > 0 and t.typename != '' + a.attnum > 0 and t.typname != '' and c.relname = {$tableName} and d.nspname = {$schemaName} ORDER BY