Hello I'm having a trouble with a dbi statement if anyone could help me...

I have to do an update in a table like:

$dbh->do(qq{UPDATE foos SET $new_foo = $old_foo});

when i use this statement all works fine but when i use placeholders like:

$dbh->do(qq{UPDATE foos SET $new_foo = ?}, undef, $old_foo);

i get zeros in the entire column.

any clue about this?


Best Regards,

--
Gabriel Sales de Oliveira | Async Open Source | [16] 3376 0125

Reply via email to