Skip to content
#

h2

Here are 492 public repositories matching this topic...

du-stripe
du-stripe commented Dec 7, 2021

When using UNION, with ORDER BY or LIMIT within a subexpression's SELECT statement, PostgreSQL requires the SELECT statement be enclosed in parentheses: https://stackoverflow.com/a/24024639 However, the following QueryDSL code causes a syntax error against Postgres because it doesn't generate those parentheses:

val i = Item.syntax("i")
selectFrom(Item.as(i)).orderBy(i.id).u

Improve this page

Add a description, image, and links to the h2 topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the h2 topic, visit your repo's landing page and select "manage topics."

Learn more