Add some test cases to improve test coverage of parse_expr.c.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 6 Jul 2019 03:56:34 +0000 (23:56 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 6 Jul 2019 03:56:34 +0000 (23:56 -0400)
commitcf20cc00a99155a8e41a1bb2a1e498624c86db29
tree782f30d26083d7dc77478bf4d9b7256494ec6801
parent79b94716e72086b07549b1c867a8ecdea6bae77e
Add some test cases to improve test coverage of parse_expr.c.

I chanced to notice while thumbing through lcov reports that we had
exactly no coverage of BETWEEN SYMMETRIC, nor of current_time(N) and
localtime(N).  Improve that.

parse_expr.c still has a pretty awful coverage number, but a large part
of that is due to lack of coverage of the operator_precedence_warning
logic.  I have zero desire to write tests for that; I think ripping it
out would be more sensible at this point.
src/test/regress/expected/expressions.out
src/test/regress/sql/expressions.sql