Yii Framework Forum: problem with clob - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

problem with clob Rate Topic: -----

#1 User is offline   riccardo 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 40
  • Joined: 02-March 10

Posted 15 April 2010 - 04:50 AM

Hi,

i have a problem with clob because php appliclation crashes trying to retrieve a clob value;
I' m trying to debug the problem but i need some help:

What's between queryInternal and queryAll functions in CDbCommand?

because if i put an exit; before the return into queryInternal like this:

if($this->_connection->enableProfiling)
Yii::endProfile('system.db.CDbCommand.query('.$this->getText().')','system.db.CDbCommand.query');

exit;
return $result;



the application works, bu if i put the exit into queryAll before the return like this:

public function queryAll($fetchAssociative=true,$params=array())
{
$obj=$this->queryInternal('fetchAll',$fetchAssociative ? PDO::FETCH_ASSOC : PDO::FETCH_NUM, $params);
exit;
return $this->queryInternal('fetchAll',$fetchAssociative ? PDO::FETCH_ASSOC : PDO::FETCH_NUM, $params);
}


it crashes.So i think there is some function/s called between the two because queryInternal return an array of array ,no "strange" objects so it has no reason to crash.

Can anyone help me?

Thanks,
Riccardo
0

#2 User is offline   Vince. 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 432
  • Joined: 29-December 08
  • Location:Los Angeles,CA

Posted 16 April 2010 - 01:54 AM

You should not modify the sources files. Specially not adding exit calls inside. What are you trying to do?
Vince Gabriel, Lead Developer.
Posted ImagePosted ImagePosted Image
0

#3 User is offline   riccardo 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 40
  • Joined: 02-March 10

Posted 16 April 2010 - 03:40 AM

I know i should not... but i'm trying to solve the clob issue....so the only thing i can do is to debug what happens....

View PostVince., on 16 April 2010 - 01:54 AM, said:

You should not modify the sources files. Specially not adding exit calls inside. What are you trying to do?

0

#4 User is offline   Breno Mayder 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 85
  • Joined: 15-September 10
  • Location:Belo Horizonte - Brasil

Posted 20 January 2014 - 01:15 PM

You solve your problem?
Breno Mayder
Posted Image
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users