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  


 [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