[Zope] Re: sqlgroup sqltest combo - strange optional string behavior?

Sean McGerty DrBob@speednet.com.au
Mon, 07 Jun 1999 16:11:34 +1000


--=====================_110057933==_.ALT
Content-Type: text/plain; charset="us-ascii"

OK - figured it out:
:select * from Company 
:<!--#sqlgroup where--> 
:   <!--#sqltest recNum optional type=int--> 
:      <!--#and--> 
:   <!--#sqltest recName column=name optional type=nb--> 
:<!--#/sqlgroup--> 

Produces the desired results. My question is what is the opterational
differences between the type=string and type=nb specifiers in this case? (Apart
from it not doing what I thought *grin*).

Thanks again,

Sean.

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= _ /\= 
 ___   Sean McGerty aka DrBob    C++::Java::Delphi::Web Developer /    \ 
<*,-> mailto:DrBob@speednet.com.au m+61-412336990 Sydney Australia\_- _* 
[`-'] new address "Democracy: Four wolves and a lamb voting on lunch" v. 
-"-"-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


--=====================_110057933==_.ALT
Content-Type: text/html; charset="us-ascii"

<html>
<font size=3>OK - figured it out:<br>
:select * from Company <br>
:&lt;!--#sqlgroup where--&gt; <br>
:&nbsp;&nbsp; &lt;!--#sqltest recNum optional type=int--&gt; <br>
:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!--#and--&gt; <br>
:&nbsp;&nbsp; &lt;!--#sqltest recName column=name optional type=nb--&gt;
<br>
:&lt;!--#/sqlgroup--&gt; <br>
<br>
Produces the desired results. My question is what is the opterational
differences between the type=string and type=nb specifiers in this case?
(Apart from it not doing what I thought *grin*).<br>
<br>
Thanks again,<br>
<br>
Sean.<br>
</font><br>

<font face="Fixedsys" size=3 color="#C0C0C0"><div align="center">
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=</font><font face="Fixedsys" size=3 color="#800000">
</font><font face="Fixedsys" size=3 color="#008000">_
/\</font><font face="Fixedsys" size=3 color="#C0C0C0">= <br>
</font><font face="Fixedsys" size=3 color="#0000FF">&nbsp;</font><font face="Fixedsys" size=3 color="#800000">___</font><font face="Fixedsys" size=3 color="#0000FF">&nbsp;&nbsp;
Sean McGerty</font><font face="Fixedsys" size=3 color="#C0C0C0"> aka
</font><font face="Fixedsys" size=3 color="#0000FF">DrBob</font><font face="Fixedsys" size=3 color="#C0C0C0">&nbsp;&nbsp;&nbsp;
</font><font face="Fixedsys" size=3 color="#800000">C++::Java::Delphi::Web
Developer
</font><font face="Fixedsys" size=3 color="#008000">/&nbsp;&nbsp;&nbsp;
\</font><font face="Fixedsys" size=3 color="#C0C0C0"> <br>
</font><font face="Fixedsys" size=3 color="#800000">&lt;*,-&gt;</font><font face="Fixedsys" size=3 color="#C0C0C0">
</font><a href="mailto:DrBob@speednet.com.au" eudora="autourl"><font face="Fixedsys" size=3 color="#008000">mailto:DrBob@speednet.com.au</a></font><font face="Fixedsys" size=3 color="#C0C0C0">
m+61-412336990 Sydney
Australia</font><font face="Fixedsys" size=3 color="#008000">\_-
_</font><font face="Fixedsys" size=3 color="#FF0000">*</font><font face="Fixedsys" size=3 color="#C0C0C0">
<br>
</font><font face="Fixedsys" size=3 color="#800000">[`-']</font><font face="Fixedsys" size=3 color="#C0C0C0">
</font><font face="Fixedsys" size=3 color="#FF00FF">new
address</font><font face="Fixedsys" size=3 color="#C0C0C0">
&quot;Democracy: Four wolves and a lamb voting on
lunch&quot;</font><font face="Fixedsys" size=3 color="#808080">
</font><font face="Fixedsys" size=3 color="#008000">v</font><font face="Fixedsys" size=3 color="#C0C0C0">.
<br>
-</font><font face="Fixedsys" size=3 color="#800000">&quot;</font><font face="Fixedsys" size=3 color="#C0C0C0">-</font><font face="Fixedsys" size=3 color="#800000">&quot;</font><font face="Fixedsys" size=3 color="#C0C0C0">-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-<br>
<br>
</font></html>

--=====================_110057933==_.ALT--