diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2022-04-18 20:04:55 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2022-04-18 20:04:55 -0400 |
commit | 587de223f03e6086d511dab16b17406eb21277ce (patch) | |
tree | 6ec6e21845b962e6fc8a5da9a9c6201e10ff79b7 /src/backend/utils/adt/timestamp.c | |
parent | 36d4efe779bfc7190ea1c1cf8deb0d945b726663 (diff) | |
download | postgresql-587de223f03e6086d511dab16b17406eb21277ce.tar.gz postgresql-587de223f03e6086d511dab16b17406eb21277ce.zip |
Add missing error handling in pg_md5_hash().
It failed to provide an error string as expected for the
admittedly-unlikely case of OOM in pg_cryptohash_create().
Also, make it initialize *errstr to NULL for success,
as pg_md5_binary() does.
Also add missing comments. Readers should not have to
reverse-engineer the API spec for a publicly visible routine.
Diffstat (limited to 'src/backend/utils/adt/timestamp.c')
0 files changed, 0 insertions, 0 deletions