db:execute context
Tomasz Rakowski <mourawi-/[email protected]> Sun, 12 Nov 2006 18:53:37 -0800 (PST)
| Newsgroups | gmane.text.xml.o-xml |
|---|---|
| Message-ID | <[email protected]> |
--===============2141554118==
Content-Type: multipart/alternative; boundary="0-347922243-1163386417=:67533"
Content-Transfer-Encoding: 7bit
--0-347922243-1163386417=:67533
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Hi,
I noticed that I can't access function parameters/variables inside db:exe=
cute statement:
<o:function name=3D"Fun">
<o:param name=3D"param1"/>
<o:do>
<o:variable name=3D"var1" select=3D"'value'"/>
<db:execute connection=3D"db" sql=3D"SELECT * from table">
=20
I CAN'T ACCESS here parameter param1 and variable var1.
</db:execute>
</o:do>
</o:function>=20
The only workaround I found was to include these parameters in SELECT sta=
tement :
<o:function name=3D"Fun">
<o:param name=3D"param1"/>
<o:do>
<o:variable name=3D"var1" select=3D"'value'"/>
<o:variable name=3D"query">
SELECT attr1, attr2, ... ,=20
<o:eval select=3D"$param1"/> as param1, =20
<o:eval select=3D"$var11"/> as var1=20
FROM table
</o:variable>
<db:execute connection=3D"db" sql=3D"{$query}">
=20
NOW I CAN ACCESS here parameter param1 and variable var1.
=20
</db:execute>
</o:do>
</o:function>=20
=20
Is there any more elegant workaround for this ?
Tomasz Rakowski
=20
---------------------------------
Check out the all-new Yahoo! Mail beta - Fire up a more powerful email an=
d get things done faster.
--0-347922243-1163386417=:67533
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Hi,<br><br>I noticed that I can't access function parameters/variables in=
side db:execute statement:<br><br> <o:function name=3D=
"Fun"><br> <o:param name=3D"pa=
ram1"/><br> <o:do><br>  =
; <o:variable name=3D"var1" select=3D"'value'"/>=
<br> <db:execu=
te connection=3D"db" sql=3D"SELECT * from table"><br>  =
; <br> =
I CAN'T ACCESS here parameter param1 and vari=
able var1.<br><br>  =
; </db:execute><br> </o:do><br> =
</o:function> <br><br>The only workaround I found was to inc=
lude these parameters in SELECT statement :<br><br> <=
;o:function name=3D"Fun"><br>
<o:param name=3D"param1"/><br> &nbs=
p; <o:do><br> <o:va=
riable name=3D"var1" select=3D"'value'"/><br><br> &n=
bsp; <o:variable name=3D"query">=
<br> &nb=
sp; SELECT attr1, attr2, ... , <br> =
&nb=
sp; <o:eval select=3D"$param1"/> as =
param1, <br> &nbs=
p; &=
nbsp; <o:eval select=3D"$var11"/> as var1 <br> &n=
bsp; FROM table<br> =
; </o:variable&g=
t;<br>
<db:execute connection=3D"db" sql=3D"{$query}">=
<br> <br> &n=
bsp; NOW I CAN ACCESS here parame=
ter param1 and variable var1.<br> <br> &nb=
sp; </db:execute><br> &=
lt;/o:do><br> </o:function> <br> <br>Is there=
any more elegant workaround for this ?<br><br><br><br>Tomasz Rakowski<br=
><br><p> 
<hr size=3D1>Check out <a href=3D"http://us.rd.yahoo.com/evt=3D43257/*htt=
p://advision.webevents.yahoo.com/mailbeta">the all-new Yahoo! Mail beta</=
a> - Fire up a more powerful email and get things done faster.
--0-347922243-1163386417=:67533--
--===============2141554118==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
o-xml mailing list
o-xml-zRfLyl9bSvv/[email protected]
http://lists.pingdynasty.com/mailman/listinfo/o-xml
--===============2141554118==--