really need some urgent help on this one |
2/24/2009 3:29:36 PM |
PHPRunner General questions | |
G
garethp authorDevClub member
Hi 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
|
|
D
|
Denton 2/24/2009 |
Hi I am hoping someone can help quickly as one of my main website pages is currently down. I have a complicated sql statement and tables with large numbers of items. Therefore I am now (worked Ok yesterday but guess the table has got bigger) getting the error message It seems obvious I need to add the statement SET SQL_BIG_SELECTS=1 or something similar but I jsut do not know where to add it. I am guess somewhere in the page_variables.php but not really sure. I ahve tried everything I can think and searched the web but with no luck. HELP!!!!
|
G
|
garethp authorDevClub member 2/24/2009 |
Denton. |
S
|
swanside 2/24/2009 |
If you did it in PHPRunner, is it not still in the project you made it in? |
![]() |
Sergey Kornilov admin 2/24/2009 |
Usually this means a problem with SQL query that needs to be re-written. |
G
|
garethp authorDevClub member 2/25/2009 |
Thanks all for taking time to respond so quickly on this one. I will have a look at re-writing the query. However for the time being I was hoping I could add SET SQL_BIG_SELECTS=1 somewhere. |
![]() |
Sergey Kornilov admin 2/25/2009 |
You can use BeforeSQLQuery event and the following code: global $conn; |