summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2006-11-14 06:33:40 +0000
committertetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2006-11-14 06:33:40 +0000
commitc47562684c2e223666292729c690fc49d5b2fb65 (patch)
treea00f969d33d0b1cf29a397e32d5cff30f4f60658
parent589096c1093bfa9a2f9b4749c80203b6ea1f61a3 (diff)
Add typecast to $form->current_date
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@586 4979c152-3d1c-0410-bac9-87ea11338e46
-rwxr-xr-xLedgerSMB/Form.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm
index f02d1765..609a397b 100755
--- a/LedgerSMB/Form.pm
+++ b/LedgerSMB/Form.pm
@@ -2270,7 +2270,7 @@ sub current_date {
}
$query = qq|SELECT to_date(?, ?)
- + ? AS thisdate|;
+ + ?::interval AS thisdate|;
@queryargs = ($thisdate, $dateformat, $days);
} else {