cakePHP - ACL tutorial & SQL Error: 1104
Posted
by vector
on Stack Overflow
See other posts from Stack Overflow
or by vector
Published on 2010-06-07T13:36:47Z
Indexed on
2010/06/07
13:42 UTC
Read the original article
Hit count: 386
Greetings!
I run into a problem/bug in production environment with SQL Error: 1104 when deploying a project secured with the ACL tutorial.
The full error:
SQL Error: 1104: The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET SQL_MAX_JOIN_SIZE=# if the SELECT is okay [CORE/cake/libs/model/datasources/dbo_source.php, line 666]
I've build a small site, worked through the ACL tutorial from the official cake book and locally everything is spiffy. dev. setup consists of: XAMPP: myslq 5.1.33, php 5.3 cakePHP 1.2.7
prod. setup: mysql 5.0.33 php 5.2.2
One of the differences I noticed with mysql setup between local and production servers, is that SQL_BIG_SELECTS is disabled on the production server ( and I don't have privileges to change that, posted a support ticked, didn't hear anything yet)
Is there anything I can do about this from my end? Thanks in advance.
© Stack Overflow or respective owner