Moczik Gabor wrote:
> Meg lehet oldani valahogy, hogy az alabbi kereses ne csak akkor terjen
> vissza fail-lel ha sikertelen a lekerdezes, hanem akkor is, ha az eredmeny
> NULL? Jelenleg az a helyzet, hogy a NULL-t ures stringnek ertelmezi, ami
> nekem nem jo. Csak ${if ...} a megoldas?
>
> ${lookup pgsql(SELECT xxx}{$value}fail}
Kozben arra is rajottem, hogy az ${if .. }-el se tudom megoldani.
Tehat ez sem mukodik:
${if !={${strlen:${lookup pgsql{SELECT xxx}{$value{0} {$value}fail}
Annyiban jo, hogy ha a select eredmenye ures (NULL), akkor a fail
vegrehajtodik, ha nem-ures, akkor meg ures stringgel ter vissza, gondolom
mert a kulso reszen a $value mar nem tartalmazza a lekerdezes eredmenyet. :-(
--
((( Móczik Gábor )))--((( E~mail: "pm-01" @AT "progzmaster" .DOT "hu" )))
((( Skype: moczik )))
_
linux lista - linux@mlf.linux.rulez.org
http://mlf2.linux.rulez.org/mailman/listinfo/linux