Re: [Dbix-class] Using a scalar ref with update_or_create

2012-03-19 Thread Octavian Rasnita
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

[Dbix-class] Using a scalar ref with update_or_create

2012-03-16 Thread Octavian Rasnita
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 ( ( ...