]
Steven Hawkins updated TEIID-2273:
----------------------------------
Affects Version/s: 7.7
Component/s: Query Engine
org.teiid.query.sql.lang.SubqueryFromClause does not quote keywords
in the alias
--------------------------------------------------------------------------------
Key: TEIID-2273
URL:
https://issues.jboss.org/browse/TEIID-2273
Project: Teiid
Issue Type: Bug
Components: Query Engine
Affects Versions: 7.7
Reporter: Mark Addleman
Assignee: Steven Hawkins
Fix For: 8.2
new SubqueryFromClause("user", QueryParser.getQueryParser()
.parseCommand("select
1")).toString()
yields
(SELECT 1) AS user
it should be
(SELECT 1) AS "user"
Briefly looking at the code, I think the problem is in
org.teiid.query.sql.visitor.SQLStringVisitor.escapeSinglePart(String).escape.
Shouldn't it check SQLStringVisitor.isReservedWord(String)?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: