[TYPO3-dev] Problem with foreign_table_where

Bernhard Kraft kraftb at kraftb.at
Fri May 19 23:06:32 CEST 2006


Ries van Twisk wrote:
> 
> 'AND pid=###STORAGE_PID### ORDER BY.......'
> 

And to really inhibit any SQL errors you should rather write:

AND pid='###STORAGE_PID###'


If no storage PID is set this will result in not causing an errror ...

AND pid= ORDER BY

would be an invalid query.


greets,
Bernhard
-- 
----------------------------------------------------------------------
"Freiheit ist immer auch die Freiheit des Andersdenkenden"
Rosa Luxemburg, 1871 - 1919
----------------------------------------------------------------------
[[ http://think-open.at | Open source company ]]




More information about the TYPO3-dev mailing list