Re: [Zope] Two mysql / timestamp related fixes

2007-03-12 Thread Gaute Amundsen
On Friday 09 March 2007 16:22, Tino Wildenhain wrote: > Gaute Amundsen schrieb: > > On Friday 09 March 2007 09:40, Tino Wildenhain wrote: > >> Gaute Amundsen schrieb: > >>> On Thursday 08 March 2007 17:27, Tino Wildenhain wrote: > Gaute Amundsen schrieb: > > Hi. > >>> > >>> > >>> > >

Re: [Zope] Two mysql / timestamp related fixes

2007-03-09 Thread Tino Wildenhain
Gaute Amundsen schrieb: On Friday 09 March 2007 09:40, Tino Wildenhain wrote: Gaute Amundsen schrieb: On Thursday 08 March 2007 17:27, Tino Wildenhain wrote: Gaute Amundsen schrieb: Hi. 1 ) First I got a ValueError 'query' when using a very simple zsql method. (consisting of only "") Tha

Re: [Zope] Two mysql / timestamp related fixes

2007-03-09 Thread Gaute Amundsen
On Friday 09 March 2007 09:40, Tino Wildenhain wrote: > Gaute Amundsen schrieb: > > On Thursday 08 March 2007 17:27, Tino Wildenhain wrote: > >> Gaute Amundsen schrieb: > >>> Hi. > > > > > > > >>> 1 ) > >>> First I got a ValueError 'query' when using a very simple zsql method. > >>> (consisting of

Re: [Zope] Two mysql / timestamp related fixes

2007-03-09 Thread Tino Wildenhain
Gaute Amundsen schrieb: On Thursday 08 March 2007 17:27, Tino Wildenhain wrote: Gaute Amundsen schrieb: Hi. 1 ) First I got a ValueError 'query' when using a very simple zsql method. (consisting of only "") Thats a very bad idea. Better make zsql methods for every query I know the orthod

Re: [Zope] Two mysql / timestamp related fixes

2007-03-08 Thread Gaute Amundsen
On Thursday 08 March 2007 17:53, Paul Winkler wrote: > On Thu, Mar 08, 2007 at 02:07:56PM +0100, Gaute Amundsen wrote: > > this is definitely connected to the timestamp column, because this > > change fixed it: > > > > diff /usr/lib/zope/lib/python/Products/ZMySQLDA/db.py > > /usr/lib/zope/lib/pyt

Re: [Zope] Two mysql / timestamp related fixes

2007-03-08 Thread Gaute Amundsen
On Thursday 08 March 2007 17:27, Tino Wildenhain wrote: > Gaute Amundsen schrieb: > > Hi. > > 1 ) > > First I got a ValueError 'query' when using a very simple zsql method. > > (consisting of only "") > > Thats a very bad idea. Better make zsql methods > for every query I know the orthodoxy :-/

Re: [Zope] Two mysql / timestamp related fixes

2007-03-08 Thread Paul Winkler
On Thu, Mar 08, 2007 at 02:07:56PM +0100, Gaute Amundsen wrote: > this is definitely connected to the timestamp column, because this change > fixed it: > > diff /usr/lib/zope/lib/python/Products/ZMySQLDA/db.py > /usr/lib/zope/lib/python/Products/ZMySQLDA/db.py~ > 173d172 > < conv[FIELD_TYPE

Re: [Zope] Two mysql / timestamp related fixes

2007-03-08 Thread Tino Wildenhain
Gaute Amundsen schrieb: Hi. Just had som troubles when I added timestamp columns to a table. Commnets? my setup: Mysql: 4.1.20-log Zope Version: (Zope 2.7.5-1.fc3, python 2.3.4, linux2) 1 ) First I got a ValueError 'query' when using a very simple zsql method. (consisting of only "") That