cvs: pear /SQL_Parser Compiler.php

From: Date: Fri, 08 Apr 2005 03:09:55 +0000
Subject: cvs: pear /SQL_Parser Compiler.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-31042@lists.php.net to get a copy of this message
busterb Thu Apr 7 23:09:55 2005 EDT Modified files: /pear/SQL_Parser Compiler.php Log: Add not when 'neg' is set on a where clause (John Griffin) http://cvs.php.net/diff.php/pear/SQL_Parser/Compiler.php?r1=1.3&r2=1.4&ty=u Index: pear/SQL_Parser/Compiler.php diff -u pear/SQL_Parser/Compiler.php:1.3 pear/SQL_Parser/Compiler.php:1.4 --- pear/SQL_Parser/Compiler.php:1.3 Tue Apr 5 23:57:40 2005 +++ pear/SQL_Parser/Compiler.php Thu Apr 7 23:09:53 2005 @@ -20,7 +20,7 @@ // | Authors: John Griffin <jgriffin316@netscape.net> | // +----------------------------------------------------------------------+ // -// $Id: Compiler.php,v 1.3 2005/04/06 03:57:40 busterb Exp $ +// $Id: Compiler.php,v 1.4 2005/04/08 03:09:53 busterb Exp $ // require_once 'PEAR.php'; @@ -135,6 +135,9 @@ if (PEAR::isError($value)) { return $value; } + if (isset($where_clause['neg'])) { + $sql .= ' not'; + } $sql .= ' '.$where_clause['op'].' '.$value; } elseif ($where_clause['op'] == 'is') { if (isset ($where_clause['neg'])) {

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