Re: [Zope] Problem using dtml-in in ZSQL method

2008-12-13 Thread Jaroslav Lukesh
: Françoise CONIL To: zope@zope.org Sent: Thursday, December 11, 2008 11:21 AM Subject: [Zope] Problem using dtml-in in ZSQL method Hello, My ZSQL method receive a *mylist* parameter that should be an integer list : [21,35] The following code does not work : SELECT * FROM MyTable WHERE id

Re: [Zope] Problem using dtml-in in ZSQL method

2008-12-12 Thread Françoise CONIL
Trying : select * from mytable sqltest mylist multiple type=int column=id did not work, it generates a ProgrammingError - Module Shared.DC.ZRDB.DA, line 374, in __call__ - Module Products.ZMySQLDA.db, line 273, in query ProgrammingError: (1064, You have an error in your SQL

Re: [Zope] Problem using dtml-in in ZSQL method

2008-12-12 Thread Andrew Milton
+---[ Fran?oise CONIL ]-- | Trying : | | select * from mytable sqltest mylist multiple type=int column=id select * from mytable WHERE sqltest mylist multiple type=int column=id ^ Missed a where statement... | Thanks for your reply No

Re: [Zope] Problem using dtml-in in ZSQL method

2008-12-12 Thread Françoise CONIL
You're right but even with a WHERE statement I get the same programming error, I have to use the dtml-sqlgroup statement Françoise 2008/12/12 Andrew Milton a...@theinternet.com.au +---[ Fran?oise CONIL ]-- | Trying : | | select * from mytable sqltest mylist

[Zope] Problem using dtml-in in ZSQL method

2008-12-11 Thread Françoise CONIL
*Hello, *My ZSQL method receive a *mylist* parameter that should be an integer list : [21,35] The following code does not work : SELECT * FROM MyTable WHERE id in (dtml-in mylist dtml-sqlvar sequence-item type=int dtml-if sequence-lastdtml-else,/dtml-if /dtml-in) *Type de

Re: [Zope] Problem using dtml-in in ZSQL method

2008-12-11 Thread Jeff Peterson
: [Zope] Problem using dtml-in in ZSQL method Hello, My ZSQL method receive a *mylist* parameter that should be an integer list : [21,35] The following code does not work : SELECT * FROM MyTable WHERE id in (dtml-in mylist dtml-sqlvar sequence-item type=int dtml-if sequence-lastdtml

Re: [Zope] Problem using dtml-in in ZSQL method

2008-12-11 Thread Jaroslav Lukesh
: Françoise CONIL To: zope@zope.org Sent: Thursday, December 11, 2008 11:21 AM Subject: [Zope] Problem using dtml-in in ZSQL method Hello, My ZSQL method receive a *mylist* parameter that should be an integer list : [21,35] The following code does not work : SELECT * FROM MyTable WHERE id

Re: [Zope] Problem using dtml-in in ZSQL method

2008-12-11 Thread Andrew Milton
| - Original Message - | From: Fran?oise CONIL | To: zope@zope.org | Sent: Thursday, December 11, 2008 11:21 AM | Subject: [Zope] Problem using dtml-in in ZSQL method | | | Hello, | | My ZSQL method receive a *mylist* parameter that should be an integer list : | [21,35

Re: [Zope] Problem using dtml-in in ZSQL method

2008-12-11 Thread Andrew Milton
+---[ Andrew Milton ]-- | | - Original Message - | | From: Fran?oise CONIL | | To: zope@zope.org | | Sent: Thursday, December 11, 2008 11:21 AM | | Subject: [Zope] Problem using dtml-in in ZSQL method | | | | | | Hello, | | | | My ZSQL method receive a *mylist