[#1493] Bad syntax for SELECT /*+hint*/ DISTINCT ... in Oracle

This commit is contained in:
Lukas Eder 2012-06-28 11:51:15 +02:00
parent df0da649d9
commit 7ec3639419

View File

@ -434,14 +434,16 @@ implements
// SELECT clause
// -------------
context.keyword("select ");
if (distinct) {
context.keyword("distinct ");
}
// [#1493] Oracle hints come directly after the SELECT keyword
if (!StringUtils.isBlank(hint)) {
context.sql(hint).sql(" ");
}
if (distinct) {
context.keyword("distinct ");
}
// Sybase and SQL Server have leading TOP clauses
switch (context.getDialect()) {
case ASE: