From b97105628554f4fe511c7c074287a15f6e1d4dcd Mon Sep 17 00:00:00 2001 From: ngleader Date: Fri, 24 Apr 2009 04:52:37 +0000 Subject: [PATCH] add databases function multiply() git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6185 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- classes/xml/XmlQueryParser.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/classes/xml/XmlQueryParser.class.php b/classes/xml/XmlQueryParser.class.php index be30f05d7..edf56fb82 100644 --- a/classes/xml/XmlQueryParser.class.php +++ b/classes/xml/XmlQueryParser.class.php @@ -451,6 +451,10 @@ case 'minus' : $args = abs($args); $val = sprintf('"%s-%d"', $name, $args); + break; + case 'multiply' : + $args = intval($args); + $val = sprintf('"%s*%d"', $name, $args); break; }