pgsql: Fix flag tests in src/test/modules/test_oat_hooks

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix flag tests in src/test/modules/test_oat_hooks
Date: 2022-07-13 11:00:07
Message-ID: E1oBa6A-002aGk-FT@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix flag tests in src/test/modules/test_oat_hooks

In what must have been a copy'n paste mistake, all the flag tests use
the same flag rather than a different flag each. The bug is not
suprising, considering that it's dead code; add a minimal, testimonial
line to cover it.

This is all pretty inconsequential, because this is just example code,
but it had better be correct.

Discussion: https://postgr.es/m/20220712152059.fwli2majwgzdmh4r@alvherre.pgsql

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/f16180216d0a6dcefd76fef4121227b63df46681

Modified Files
--------------
src/test/modules/test_oat_hooks/expected/test_oat_hooks.out | 13 ++++++++++++-
src/test/modules/test_oat_hooks/sql/test_oat_hooks.sql | 5 ++++-
src/test/modules/test_oat_hooks/test_oat_hooks.c | 10 +++++-----
3 files changed, 21 insertions(+), 7 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2022-07-13 11:00:08 pgsql: Plug memory leak
Previous Message Peter Eisentraut 2022-07-13 10:28:27 pgsql: Allow specifying STORAGE attribute for a new table