Re:I don't want to learn your query language (2018)
by lukaseder on Sunday March 14, 2021 @05:49AM
(#26453963)
Like any toString() implementation, it is meant for debugging. If the object you're calling toString() on is "attachable" (e.g. a Query), then you get the vendor specific string for additional convenience. If you just call substring(a, b, c).toString(), you'll get a generic rendering.
If you always want the vendor specific SQL string, use DSLContext.render(QueryPart)
If you always want the vendor specific SQL string, use DSLContext.render(QueryPart)