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

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


 [2007-06-28 04: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 05: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.