framework/db/schema/cubrid/CCubridSchema.php
protected function findPrimaryKeys($table)
	{
		$pks=$this->getDbConnection()->getPdoInstance()->cubrid_schema(PDO::CUBRID_SCH_PRIMARY_KEY,$table->name);

		foreach($pks as $pk)
		{
			$c = $table->columns[$pk['ATTR_NAME']];
			$c->isPrimaryKey = true;

			if($table->primaryKey===null)
				$table->primaryKey=$c->name;
			elseif(is_string($table->primaryKey))
				$table->primaryKey=array($table->primaryKey,$c->name);
			else
				$table->primaryKey[]=$c->name;
			if($c->autoIncrement)
				$table->sequenceName='';
		}
	}
protected function findPrimaryKeys($table)
	{
		$pks=$this->getDbConnection()->getPdoInstance()->cubrid_schema(PDO::CUBRID_SCH_PRIMARY_KEY,$table->name);

		foreach($pks as $pk)
		{
			$c = $table->columns[$pk['ATTR_NAME']];
			$c->isPrimaryKey = true;

			if($table->primaryKey===null)
				$table->primaryKey=$c->name;
			elseif(is_string($table->primaryKey))
				$table->primaryKey=array($table->primaryKey,$c->name);
			else
				$table->primaryKey[]=$c->name;
			if($c->autoIncrement)
				$table->sequenceName='';
		}
	}
protected function findPrimaryKeys ( $ table ) { $ pks = $ this -> getDbConnection ( ) -> getPdoInstance ( ) -> cubrid_schema ( PDO :: CUBRID_SCH_PRIMARY_KEY , $ table -> name ) ; foreach ( $ pks as $ pk ) { $ c = $ table -> columns [ $ pk [ 'ATTR_NAME' ] ] ; $ c -> isPrimaryKey = true ; if ( $ table -> primaryKey === null ) $ table -> primaryKey = $ c -> name ; elseif ( is_string ( $ table -> primaryKey ) ) $ table -> primaryKey = array ( $ table -> primaryKey , $ c -> name ) ; else $ table -> primaryKey [ ] = $ c -> name ; if ( $ c -> autoIncrement ) $ table -> sequenceName = '' ; } }
Collects the primary key column details for the given table.
@param CCubridTableSchema $table the table metadata
Collects the primary key column details for the given table .