pgsql: Use more appropriate DatumGet* function

Started by Peter Eisentraut7 months ago1 messagescomitters
Jump to latest
#1Peter Eisentraut
peter_e@gmx.net

Use more appropriate DatumGet* function

Use DatumGetCString() instead of DatumGetPointer() for returning a C
string. Right now, they are the same, but that doesn't always have to
be so.

Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Reviewed-by: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Discussion: /messages/by-id/4154950a-47ae-4223-bd01-1235cc50e933@eisentraut.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8c6bbd674ed810df9af5ec42f6b38c205e3ad365

Modified Files
--------------
src/test/modules/test_resowner/test_resowner_basic.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)