Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

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

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://626789]
[stevieb]: In msg, how do I message someone with a space in their name. For example, I want to privately message "Your Mother", but am unsure of how to do so. Link/tips?
[pryrt]: In the link brackets...
[stevieb]: guys, not *your* mother, "Your Mother" here on PM. Sheesh. Like I haven't spoken to your mom

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2018-03-23 00:36 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (287 votes). Check out past polls.