From: Websuche :: Felix Ostmann
Subject: Re: [Dbix-class] Using a scalar ref with update_or_create
We run into the same problem and simple split the problem. Make a find, then
update or create (simple look what update_or_create do internally)
Oh, so the answer to my question seems
Hi,
I have tried to use:
$self-update_or_create({
symbol = $symbol,
market = $market,
last_update = \'now()',
});
Am I doing something wrong?
The problem is the row:
last_update = \'now()',
...because the generated SQL for select looks like:
SELECT ... FROM table_name me WHERE ( ( ...