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

Bug #11466 PATCH NEEDED - 1a is not treated as single string
Submitted: 2007-06-28 09:50 UTC
From: cybot Assigned:
Status: Open Package: SQL_Parser (version CVS)
PHP Version: 5.2.3 OS:
Roadmaps: 0.5.1    
Subscription  
Comments Add Comment Add patch


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 : 44 - 7 = ?

 
 [2007-06-28 09:50 UTC] cybot (Sebastian Mendel)
Description: ------------ 1a is not treated as single string or identifier Test script: --------------- echo SELECT 1a > test.sql php generate_testcases.php test.sql Expected result: ---------------- <?php $tests = array( array( 'sql' => 'SELECT 1a', 'expect' => array( 'command' => 'select', 'column_names' => array( 0 => '1a', ), 'column_tables' => array( 0 => '', ), 'column_aliases' => array( 0 => '', ) ) ), ); ?> Actual result: -------------- <?php $tests = array( array( 'sql' => 'SELECT 1a', 'expect' => array( 'command' => 'select', 'column_values' => array( 0 => '1' ), 'column_names' => array( 0 => '1', 1 => 'a' ), 'column_tables' => array( 0 => '', 1 => '' ), 'column_aliases' => array( 0 => '', 1 => '' ) ) ), ); ?>

Comments

 [2011-02-14 10:13 UTC] alan_k (Alan Knowles)
-Summary: 1a is not treated as single string +Summary: PATCH NEEDED - 1a is not treated as single string