emptySlice

fun ColumnSet.emptySlice(): FieldSet(source)

Deprecated

This causes "java.lang.IllegalArgumentException: Can't prepare SELECT statement without columns or expressions to retrieve" in the latest version of Exposed. Also, the original API in Exposed is removed.

To simplify the SQL in some expression queries. For example Dual.slice(exists(Table.emptySlice().select(op))).selectAll() generates a SQL with no columns which is simpler.