|
Re: Error updating the initial_passthru field in menu_task [message #3050 is a reply to message #3049] |
Sat, 11 August 2012 04:13 ![Go to previous message Go to previous message](/theme/default/images/up.png) ![Go to next message Go to next message](/theme/default/images/down.png) |
AJM
Messages: 2361 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
The error is caused by the fact that the value 'pro_product_codes(search)' is not enclosed with single quotes in the generated query. The only time this can happen is if your code contains the following somewhere:
$this->allow_db_function[] = 'initial_passthru';
This causes the DML object to treat the value as if it were a function call, as in 'function(args)', instead of a literal value. REmove this offending line and your problem will disappear.
The only time you should EVER populate $this->allow_db_function is when you KNOW that the value you are supplying is a function call and not a literal.
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|
|
|