Extend SQL function tests lightly
authorPeter Eisentraut <peter@eisentraut.org>
Sat, 5 Sep 2020 11:28:05 +0000 (13:28 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Sat, 5 Sep 2020 11:28:05 +0000 (13:28 +0200)
commit11b80d900fe4297e8e4bc231f6a41b53d604ed9e
tree5ca8bee45f9abd3af81d2de0c7ef71e7863f7f96
parent556cbdfce4ffe01410b89dbf01b27315aa201bbf
Extend SQL function tests lightly

The basic tests that defined SQL functions didn't actually run the
functions to see if they worked.  Add that, and also fix a minor
mistake in a function that was revealed by this.  (This is not a
question of test coverage, since there are other places where SQL
functions are run, but it is a bit of a silly test design.)

Discussion: https://www.postgresql.org/message-id/flat/1c11f1eb-f00c-43b7-799d-2d44132c02d7@2ndquadrant.com
src/test/regress/expected/create_function_3.out
src/test/regress/sql/create_function_3.sql