cvs: pear /MDB2_Schema/MDB2 Schema.php

From: Date: Sat, 30 Sep 2006 03:21:33 +0000
Subject: cvs: pear /MDB2_Schema/MDB2 Schema.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-42312@lists.php.net to get a copy of this message
ifeghali Sat Sep 30 03:21:33 2006 UTC Modified files: /pear/MDB2_Schema/MDB2 Schema.php Log: - removed some operators from getOperator(), added others. http://cvs.php.net/viewvc.cgi/pear/MDB2_Schema/MDB2/Schema.php?r1=1.96&r2=1.97&diff_format=u Index: pear/MDB2_Schema/MDB2/Schema.php diff -u pear/MDB2_Schema/MDB2/Schema.php:1.96 pear/MDB2_Schema/MDB2/Schema.php:1.97 --- pear/MDB2_Schema/MDB2/Schema.php:1.96 Fri Sep 29 09:09:07 2006 +++ pear/MDB2_Schema/MDB2/Schema.php Sat Sep 30 03:21:33 2006 @@ -42,7 +42,7 @@ // | Author: Lukas Smith <smith@pooteeweet.org> | // +----------------------------------------------------------------------+ // -// $Id: Schema.php,v 1.96 2006/09/29 09:09:07 lsmith Exp $ +// $Id: Schema.php,v 1.97 2006/09/30 03:21:33 ifeghali Exp $ // require_once 'MDB2.php'; @@ -843,26 +843,28 @@ function getOperator($op) { switch ($op) { - case 'NOT': - return ' NOT '; - case 'AND': - return ' AND '; - case 'OR': - return ' OR '; case 'PLUS': return ' + '; case 'MINUS': return ' - '; + case 'TIMES': + return ' * '; + case 'DIVIDED': + return ' / '; case 'EQUAL': return ' = '; - case 'LIKE': - return ' LIKE '; case 'NOT EQUAL': return ' != '; case 'LESS THAN': return ' < '; case 'GREATER THAN': return ' > '; + case 'LESS THAN OR EQUAL': + return ' <= '; + case 'GREATER THAN OR EQUAL': + return ' >= '; + default: + return ' '.$op.' '; } }

« previous php.pear.cvs (#42312) next »