[#3727] Don't apply this fix to databases other than PostgreSQL

This commit is contained in:
Lukas Eder 2015-02-25 18:21:43 +01:00
parent 3bd5d16ad0
commit 059d44591b

View File

@ -373,7 +373,7 @@ class Function<T> extends AbstractField<T> implements
if (POSTGRES == ctx.family())
return windowDefinition;
else
return DSL.sql("{0}", windowDefinition);
return DSL.sql("({0})", windowDefinition);
// [#531] Inline window specifications if the WINDOW clause is not supported
if (windowName != null) {