From 185b9cd6739ca72e7ba7bce6c74ebdea0b3aab7e Mon Sep 17 00:00:00 2001 From: einhverfr Date: Wed, 11 Oct 2006 02:02:37 +0000 Subject: Preprocess the callproc procname so that the first () becomes the argstr. git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@203 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/Form.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'LedgerSMB/Form.pm') diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm index e5fa4f61..65e352e6 100755 --- a/LedgerSMB/Form.pm +++ b/LedgerSMB/Form.pm @@ -515,7 +515,8 @@ sub callproc { $argstr .= "?, "; } $argstr =~ s/\, $//; - $query = "SELECT $procname($argstr)"; + $query = "SELECT $procname"; + $query =~ s/\(\)/$argstr/; my $sth = $form->{dbh}->prepare($query); while (my $ref = $sth->fetchrow_hashref(NAME_lc)){ push @results, $ref; -- cgit v1.2.3