Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.7.0

Bug #11464 FROM is not required for SELECT
Submitted: 2007-06-28 09:43 UTC
From: cybot Assigned: cybot
Status: Closed Package: SQL_Parser (version CVS)
PHP Version: 5.2.3 OS:
Roadmaps: 0.5.1    
Subscription  


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 46 + 3 = ?

 
 [2007-06-28 09:43 UTC] cybot (Sebastian Mendel)
Description: ------------ endless loop with missing FROM after SELECT Test script: --------------- echo SELECT 1; > test.sql php generate_testcases.php test.sql Expected result: ---------------- <?php $tests = array( array( 'sql' => 'SELECT 1', 'expect' => array( 'command' => 'select', 'column_values' => array( 0 => 1 ), 'column_names' => array( 0 => 1 ), 'column_tables' => array( 0 => '' ), 'column_aliases' => array( 0 => '' ) ) ), ); ?> Actual result: -------------- <?php $tests = array( array( 'sql' => 'SELECT 1', Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 8496 bytes) in C:\htdocs\pear\pear\SQL\Lexer.php on line 163

Comments

 [2007-07-06 10:45 UTC] cybot (Sebastian Mendel)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.