cvs: pear /DBA Sql_parse.php
| From: | Brent Cook | Date: | Sat, 24 Aug 2002 17:42:34 +0000 |
| Subject: | cvs: pear /DBA Sql_parse.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-5929@lists.php.net to get a copy of this message | ||
busterb Sat Aug 24 13:42:34 2002 EDT
Modified files:
/pear/DBA Sql_parse.php
Log:
Error pointer now points to the beginning of the unexpected token rather than
the end
Index: pear/DBA/Sql_parse.php
diff -u pear/DBA/Sql_parse.php:1.17 pear/DBA/Sql_parse.php:1.18
--- pear/DBA/Sql_parse.php:1.17 Thu Jul 18 15:11:43 2002
+++ pear/DBA/Sql_parse.php Sat Aug 24 13:42:34 2002
@@ -18,7 +18,7 @@
// | Foundation, Inc., 59 Temple Place, Suite 330,Boston,MA 02111-1307 USA|
// +----------------------------------------------------------------------+
//
-// $Id: Sql_parse.php,v 1.17 2002/07/18 19:11:43 busterb Exp $
+// $Id: Sql_parse.php,v 1.18 2002/08/24 17:42:34 busterb Exp $
//
require_once 'PEAR.php';
@@ -255,7 +255,8 @@
($this->lexer->lineNo+1)."\n";
$message .= substr($this->lexer->string, $this->lexer->lineBegin,
$end)."\n";
$message .= str_repeat(' ', ($this->lexer->tokPtr -
- $this->lexer->lineBegin))."^\n";
+ $this->lexer->lineBegin -
+ strlen($this->lexer->tokText)))."^\n";
return PEAR::raiseError($message);
}