[#7183] Fix this also for HSQLDB
This commit is contained in:
parent
7bb228c003
commit
9cc13c4fe7
@ -37,6 +37,8 @@
|
||||
*/
|
||||
package org.jooq.impl;
|
||||
|
||||
import static org.jooq.impl.DSL.one;
|
||||
import static org.jooq.impl.DSL.select;
|
||||
import static org.jooq.impl.Keywords.K_NULL;
|
||||
import static org.jooq.impl.Keywords.K_SELECT;
|
||||
|
||||
@ -67,7 +69,8 @@ final class ConstantSortField<T> extends CustomField<T> {
|
||||
|
||||
|
||||
case POSTGRES:
|
||||
ctx.sql('(').visit(K_SELECT).sql(" 1)");
|
||||
case HSQLDB:
|
||||
ctx.sql('(').visit(select(one())).sql(')');
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user