cvs: pear /SQL_Parser Parser.php
| From: | Erich Enke | Date: | Thu, 09 Feb 2006 19:39:27 +0000 |
| Subject: | cvs: pear /SQL_Parser Parser.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-38085@lists.php.net to get a copy of this message | ||
epte Thu Feb 9 19:39:27 2006 UTC
Modified files:
/pear/SQL_Parser Parser.php
Log:
Spacing fixes
http://cvs.php.net/viewcvs.cgi/pear/SQL_Parser/Parser.php?r1=1.34&r2=1.35&diff_format=u
Index: pear/SQL_Parser/Parser.php
diff -u pear/SQL_Parser/Parser.php:1.34 pear/SQL_Parser/Parser.php:1.35
--- pear/SQL_Parser/Parser.php:1.34 Thu Feb 9 19:31:31 2006
+++ pear/SQL_Parser/Parser.php Thu Feb 9 19:39:27 2006
@@ -25,7 +25,7 @@
// | John Griffin <jgriffin316@netscape.net> |
// +----------------------------------------------------------------------+
//
-// $Id: Parser.php,v 1.34 2006/02/09 19:31:31 epte Exp $
+// $Id: Parser.php,v 1.35 2006/02/09 19:39:27 epte Exp $
//
// The plan for moving forward:
// - Refactor sentinel conditions to show flow
@@ -1120,21 +1120,21 @@
}
$this->getTok();
while ($this->token == 'ident') {
- $arg = $this->lexer->tokText;
- $this->getTok();
- if ($this->token == '.') {
- $this->getTok();
- if ($this->token == 'ident') {
- $arg .= '.'.$this->lexer->tokText;
- }
- else {
- return $this->raiseError('Expected a column name');
- }
- }
- else {
- $this->lexer->pushBack();
- }
- $col = $arg;
+ $arg = $this->lexer->tokText;
+ $this->getTok();
+ if ($this->token == '.') {
+ $this->getTok();
+ if ($this->token == 'ident') {
+ $arg .= '.'.$this->lexer->tokText;
+ }
+ else {
+ return $this->raiseError('Expected a column name');
+ }
+ }
+ else {
+ $this->lexer->pushBack();
+ }
+ $col = $arg;
//$col = $this->lexer->tokText;
$this->getTok();
if (isset($this->synonyms[$this->token])) {
@@ -1179,21 +1179,21 @@
}
$this->getTok();
while ($this->token == 'ident') {
- $arg = $this->lexer->tokText;
- $this->getTok();
- if ($this->token == '.') {
- $this->getTok();
- if ($this->token == 'ident') {
- $arg .= '.'.$this->lexer->tokText;
- }
- else {
- return $this->raiseError('Expected a column name');
- }
- }
- else {
- $this->lexer->pushBack();
- }
- $col = $arg;
+ $arg = $this->lexer->tokText;
+ $this->getTok();
+ if ($this->token == '.') {
+ $this->getTok();
+ if ($this->token == 'ident') {
+ $arg .= '.'.$this->lexer->tokText;
+ }
+ else {
+ return $this->raiseError('Expected a column name');
+ }
+ }
+ else {
+ $this->lexer->pushBack();
+ }
+ $col = $arg;
//$col = $this->lexer->tokText;
$this->getTok();
if ($this->token == ',') {