From 02d0ce186cfc17daba79f9c63fb0fe6061e9a766 Mon Sep 17 00:00:00 2001 From: tetragon Date: Thu, 13 Sep 2007 17:06:15 +0000 Subject: Switch call from do to prepare git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1583 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/IR.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LedgerSMB/IR.pm b/LedgerSMB/IR.pm index 0afbc827..0fbb4694 100644 --- a/LedgerSMB/IR.pm +++ b/LedgerSMB/IR.pm @@ -901,7 +901,7 @@ sub reverse_invoice { amount, transdate, project_id) VALUES (?, ?, ?, ?, ?)|; - $sth = $dbh->do($query); + $sth = $dbh->prepare($query); $sth->execute( $pthref->{trans_id}, $ref->{inventory_accno_id}, -- cgit v1.2.3