Thursday, April 28, 2011

Re: Mysql 1064 error

On Wed, Apr 27, 2011 at 3:28 PM, blue_negative <james.dcunha@gmail.com> wrote:
> Hi,
>
> I am using Cake 1.3.8 and get a Mysql error code 1064. Following is
> the details in debug mode
> Query: check
> 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 '' at line 1
>
> The associated mode has following relationships:
> 4 hasMany
> 1 belongsTo
> 1 HBTM
>
> Its seems that the it is generating a sql query "Check" and hence it
> is throwing the error. The interesting part is it does not generate
> this "check: query for my other mode.

Can't say for sure as you haven't posted either the code or the SQL,
but this usually happens when you call a nonexistant method of the
model, eg.
$this->YourModel->check()

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate