Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Use mysql NOW() fuction from DBIx::Class

by haoess (Curate)
on Jul 16, 2007 at 07:03 UTC ( #626789=note: print w/ replies, xml ) Need Help??


in reply to Use mysql NOW() fuction from DBIx::Class

You can use NOW() in your UPDATE-clause:

my $item = ...; $item->update({ time_column => \'NOW()', # more columns here });

-- Frank


Comment on Re: Use mysql NOW() fuction from DBIx::Class
Select or Download Code
Replies are listed 'Best First'.
Re^2: Use mysql NOW() fuction from DBIx::Class
by Mutant (Priest) on Jul 16, 2007 at 11:29 UTC
    Yep, a scalar reference passes a literal string to the SQL, rather than a bind variable.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://626789]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2015-08-03 10:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (30 votes), past polls