SIGN IN SIGN UP

When adding the implied "LIMIT 1" to the end of a scalar subquery, make sure

that subquery is not a VALUES-only query as such queries cannot deal with
LIMIT clauses.

FossilOrigin-Name: 7c27310bdf6b4af44a0811a2787ed64966d720d2
D
drh committed
1978d171cb1f64765b18c81ad3d8bde62c2d434c
Parent: 0ec68f8