Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
find conditions fatal error
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
rahajiyev  
View profile  
 More options May 22 2012, 7:35 am
From: rahajiyev <rahaji...@bankofbaku.com>
Date: Tue, 22 May 2012 04:35:13 -0700 (PDT)
Local: Tues, May 22 2012 7:35 am
Subject: find conditions fatal error
I'm trying to use ported Oracle support with Cake 2.1.2
(thanks to http://www.hassanbakar.com/2012/01/09/using-oracle-in-cakephp-2-0/)

Unfortunately this code fails:
$this->set('hpans', $this->CrefTab->find('first', array('conditions'
=> array('cref_no LIKE' => "%$hpan"))));

Fatal error: Call to a member function quote() on a non-object in /var/
www/milli/cakephp/lib/Cake/Model/Datasource/DboSource.php on line 326

in fact any kind of array key fails instantly, except for numeric
strings.
Please help... I just must use Oracle.

Here what line 326 in DboSource.php says:
                switch ($column) {
                        ...
                        case 'string':
                        case 'text':
                                return $this->_connection-

>quote($data, PDO::PARAM_STR);

So $this->_connection isn't an object. It's probably because Cake 1.x
Oracle didn't support PDO.
How can I work around this? Any tips?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stefanie  
View profile  
 More options May 24 2012, 8:21 am
From: Stefanie <ssch...@web.de>
Date: Thu, 24 May 2012 05:21:05 -0700 (PDT)
Local: Thurs, May 24 2012 8:21 am
Subject: Re: find conditions fatal error
Hi rahajiyev,

I encountered a related problem. I was always getting a "Warning (2):
implode() [function.implode]: Invalid arguments passted [...]" error.
After some days of research I came to the point that (for my problem)
the line
$data .= implode(', ', $this->value($value, $columnType));
in DboSource.php, #2352 is making all the trouble. Compaire the
DboSource::value() method with the one from the Oracle class. You'll
see differences.

I think that a work-around for this function - in order to get the
whole find-method to work - will solve the problems.

Does anybody else have another solution so far?

Greetings,
Stefi


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
rahajiyev  
View profile   Translate to Translated (View Original)
 More options May 25 2012, 8:51 am
From: rahajiyev <rahaji...@bankofbaku.com>
Date: Fri, 25 May 2012 05:51:42 -0700 (PDT)
Local: Fri, May 25 2012 8:51 am
Subject: Re: find conditions fatal error
As I said Cake 1.3 never supported PDO, and this is how things are
done in 2.x, so Oracle driver needs to be rewritten if you want to do
any kind of filtering (WHERE ...). There are too many bits of code
needing a rewrite, not only the connection step.
I've "worked around" the issue by simply falling back to 1.3

On May 24, 5:21 pm, Stefanie <ssch...@web.de> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
oDiN  
View profile  
 More options May 30 2012, 6:06 am
From: oDiN <odi...@gmail.com>
Date: Wed, 30 May 2012 03:06:49 -0700 (PDT)
Local: Wed, May 30 2012 6:06 am
Subject: Re: find conditions fatal error

already fix this .
https://bitbucket.org/odin88/cakephp-2.0-oracle/changeset/535a4133a59e


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »