Re: How to print query...

2008-10-22 Thread Adam Royle
The query executed is there... it just doesn't look like a regular query. Query: addStar I'm guessing you've got a $this->Book->addStar() call but haven't defined the addStar() method?? This happens because cakephp automatically executes a query by the same name of the method, assuming it's a

Re: How to print query...

2008-10-22 Thread Gonzalo Servat
On Wed, Oct 22, 2008 at 8:51 AM, xelios <[EMAIL PROTECTED]> wrote: > > Following is the out put of my error: > / > > */ > Warning (512): SQL Error: 1064: You have an error in your SQL syntax; > check the manual that co

Re: How to print query...

2008-10-22 Thread xelios
Following is the out put of my error: / */ Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'addStar'

Re: How to print query...

2008-10-22 Thread phpcurious
if you don't see any debug dump, that could have been due to your $cakeDebug is either empty or not in default.ctp layout On Oct 22, 6:38 pm, xelios <[EMAIL PROTECTED]> wrote: > My debug line is as follows: > Configure::write('debug', 2); > > but still its not showing queries > > On Oct 22, 3:24 

Re: How to print query...

2008-10-22 Thread xelios
My debug line is as follows: Configure::write('debug', 2); but still its not showing queries On Oct 22, 3:24 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > app/config/core.php - the first line of code. > > --- > /** >  * CakePHP Debug Level: >  * >  * Production Mode: >  *      0: No erro

Re: How to print query...

2008-10-22 Thread [EMAIL PROTECTED]
app/config/core.php - the first line of code. --- /** * CakePHP Debug Level: * * Production Mode: * 0: No error messages, errors, or warnings shown. Flash messages redirect. * * Development Mode: * 1: Errors and warnings shown, model caches refreshed, flash messages halted. *

Re: How to print query...

2008-10-22 Thread Amit Badkas
2008/10/22 xelios <[EMAIL PROTECTED]> > > I've an error in my sql query. How can I print query for debugging > purposes. > - If the debug setting is greater than 1 then SQL queries will get outputted at the bottom of page -- Amit http://amitrb.wordpress.com/ http://coppermine-gallery.net/ http

How to print query...

2008-10-22 Thread xelios
I've an error in my sql query. How can I print query for debugging purposes. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscri