Bug in COciSchema.findConstraints

There is a bug in COciSchema.findConstraints.

patch:




--- framework/db/schema/oci/COciSchema.php.orig	2009-09-06 09:17:30.000000000 +0800

+++ framework/db/schema/oci/COciSchema.php	2009-09-23 18:58:53.000000000 +0800

@@ -231,7 +231,7 @@

 			if($row['CONSTRAINT_TYPE']==='R')   // foreign key

 			{

 				$name = $row["COLUMN_NAME"];

-				$table->foreignKeys[$name]=array($row["TABLE_REF"], array($row["COLUMN_REF"]));

+				$table->foreignKeys[$name]=array($row["TABLE_REF"], $row["COLUMN_REF"]);

 				if(isset($table->columns[$name]))

 					$table->columns[$name]->isForeignKey=true;

 			}



It is already fixed: http://code.google.com/p/yii/source/detail?spec=svn1414&r=1414#

Thanks for reporting.