Regexp Query.SUBJECT_PATTERN does not accept DISTINCT
-----------------------------------------------------
Key: JBSEAM-4761
URL: https://issues.jboss.org/browse/JBSEAM-4761
Project: Seam
Issue Type: Bug
Components: Framework
Affects Versions: 2.2.1.CR3
Environment: http://fisheye.jboss.org/browse/Seam/branches/community/Seam_2_2/src/main...
Reporter: Michael Keuchen
The current pattern in org.jboss.seam.framwork.Query
private static final Pattern SUBJECT_PATTERN = Pattern.compile("^select\\s+(\\w+(?:\\s*\\.\\s*\\w+)*?)(?:\\s*,\\s*(\\w+(?:\\s*\\.\\s*\\w+)*?))*?\\s+from", Pattern.CASE_INSENSITIVE);
does not accept queries using the keyword DISTINCT, for example:
SELECT DISTINCT vehicle FROM VEHICLE vehicle ...
Proposal:
Change the pattern to
"^select\\s+((distinct)?\\s+\\w+(?:\\s*\\.\\s*\\w+)*?)(?:\\s*,\\s*(\\w+(?:\\s*\\.\\s*\\w+)*?))*?\\s+from"
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
Nothing mentioned about dependency on commons-* libraries
---------------------------------------------------------
Key: JBSEAM-2092
URL: http://jira.jboss.com/jira/browse/JBSEAM-2092
Project: JBoss Seam
Issue Type: Task
Components: Documentation
Affects Versions: 2.0.0.CR2, 2.0.0.CR1
Reporter: Jacek Zebrowski
As in the title.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira