cvs: pear /SQL_Parser Compiler.php

From: Date: Wed, 06 Apr 2005 03:57:40 +0000
Subject: cvs: pear /SQL_Parser Compiler.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-30960@lists.php.net to get a copy of this message
busterb Tue Apr 5 23:57:40 2005 EDT Modified files: /pear/SQL_Parser Compiler.php Log: Fixed some bugs in the Compiler (John Griffin) http://cvs.php.net/diff.php/pear/SQL_Parser/Compiler.php?r1=1.2&r2=1.3&ty=u Index: pear/SQL_Parser/Compiler.php diff -u pear/SQL_Parser/Compiler.php:1.2 pear/SQL_Parser/Compiler.php:1.3 --- pear/SQL_Parser/Compiler.php:1.2 Sat Jul 3 00:49:44 2004 +++ pear/SQL_Parser/Compiler.php Tue Apr 5 23:57:40 2005 @@ -20,7 +20,7 @@ // | Authors: John Griffin <jgriffin316@netscape.net> | // +----------------------------------------------------------------------+ // -// $Id: Compiler.php,v 1.2 2004/07/03 04:49:44 busterb Exp $ +// $Id: Compiler.php,v 1.3 2005/04/06 03:57:40 busterb Exp $ // require_once 'PEAR.php'; @@ -50,6 +50,7 @@ case 'ident': case 'real_val': case 'int_val': + case 'null': $value = $arg['value']; break; case 'text_val': @@ -73,13 +74,14 @@ case 'ident': case 'real_val': case 'int_val': + case 'null': $value[] = $arg['value'][$i]; break; case 'text_val': $value[] = '\''.$arg['value'][$i].'\''; break; default: - return PEAR::raiseError('Unknown type: '.$arg['type']); + return PEAR::raiseError('Unknown type: '.$arg['type'][$i]); } } $value ='('.implode(', ', $value).')'; @@ -95,13 +97,14 @@ case 'ident': case 'real_val': case 'int_val': + case 'null': $value[] = $arg['arg'][$i]; break; case 'text_val': $value[] = '\''.$arg['arg'][$i].'\''; break; default: - return PEAR::raiseError('Unknown type: '.$arg['type']); + return PEAR::raiseError('Unknown type: '.$arg['type'][$i]); } } $value = implode(', ', $value);

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