[#1493] Bad syntax for SELECT /*+hint*/ DISTINCT ... in Oracle
This commit is contained in:
parent
df0da649d9
commit
7ec3639419
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user