Bug 118147 - StatementParser.jj can incorrectly match <SINGLE_STRING>
Summary: StatementParser.jj can incorrectly match <SINGLE_STRING>
Keywords:
Status: CLOSED EOL
Alias: None
Product: Red Hat Web Application Framework
Classification: Retired
Component: installation
Version: nightly
Hardware: All
OS: Linux
medium
low
Target Milestone: ---
Assignee: ccm-bugs-list
QA Contact: Jon Orris
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-03-12 14:25 UTC by Brett Prucha
Modified: 2020-03-27 16:51 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-03-27 16:51:59 UTC
Embargoed:


Attachments (Terms of Use)

Description Brett Prucha 2004-03-12 14:25:24 UTC
Description of problem:

In certain cases the statement parser can incorrectly match the 
<SINGLE_STRING> token as a <SQL_TOKEN>


How reproducible:

Every time.


Steps to Reproduce:

If you have a string token in a sql file that has non white space 
characters preceeding it then it will be matched as a sql token.  If 
that string has a space in in then you could end up with a parse 
error.

Ex.

v_foo +'string'

produces two <SQL_TOKEN>'s "v_foo" and "+'string'"

And if the string has spaces in it...

Ex.

v_foo +'string spaces '

produces 3 <SQL_TOKEN>'s "v_foo", "+'string", "spaces" and the
start of a <SINGLE_STRING> which is supposed to be the end of the
<SINGLE_STRING>!


Note You need to log in before you can comment on or make changes to this bug.