Re: Re: Using NOW() with MySQL

[prev] [thread] [next] [Date index for 2004/08/06]

From: tom
Subject: Re: Re: Using NOW() with MySQL
Date: 16:04 on 06 Aug 2004
Tony Bowden wrote:

>> On Thu, Aug 05, 2004 at 12:46:17PM +0100, tom@xxxxxxxx.xxx wrote:
>> 
>>>>I have tried all sorts of variations, amazed that I could not just
>>>>add the key-value pair created=>NOW() into the create hash.
>> 
>> Why are you amazed? How would you expect this to work? NOW() is magical
>> in your database, and every database has a large list of similar
>> functions. Class::DBI can't know what to do with these.

I suppose because with other applications/languages I have used/dabbled 
with, there is something similar to the DBI/DBD layers, and those DBIs 
handle magic 'NOW's and 'SYSDATE's. Usually by having a way to let 
through your parameters as they are and trusting the end database to 
know what to do (or error).

>> There's a discussion on the wiki about this:
>> 
>> 	http://www.class-dbi.com/cgi-bin/wiki/index.cgi?SettingDefaultValues

Thank you, a very helpful link.

Using NOW() with MySQL
tom 11:46 on 05 Aug 2004

Re: Using NOW() with MySQL
karjala_lists 11:55 on 05 Aug 2004

Re: Using NOW() with MySQL
karjala_lists 12:15 on 05 Aug 2004

Re: Using NOW() with MySQL
Tony Bowden 12:02 on 05 Aug 2004

Re: Re: Using NOW() with MySQL
tom 16:04 on 06 Aug 2004

Re: Re: Using NOW() with MySQL
Tony Bowden 16:26 on 06 Aug 2004

Re: Re: Using NOW() with MySQL
Tim Bunce 16:30 on 06 Aug 2004

Generated at 11:34 on 01 Dec 2004 by mariachi v0.52