-
- Downloads
Dodge a macro-name conflict with Perl.
Some versions of Perl export a macro named HS_KEY. This creates a conflict in contrib/hstore_plperl against hstore's macro of the same name. The most future-proof solution seems to be to rename our macro; I chose HSTORE_KEY. For consistency, rename HS_VAL and related macros similarly. Back-patch to 9.5. contrib/hstore_plperl doesn't exist before that so there is no need to worry about the conflict in older releases. Per reports from Marco Atzeri and Mike Blackwell.
Showing
- contrib/hstore/hstore.h 5 additions, 5 deletionscontrib/hstore/hstore.h
- contrib/hstore/hstore_compat.c 1 addition, 1 deletioncontrib/hstore/hstore_compat.c
- contrib/hstore/hstore_gin.c 5 additions, 3 deletionscontrib/hstore/hstore_gin.c
- contrib/hstore/hstore_gist.c 10 additions, 6 deletionscontrib/hstore/hstore_gist.c
- contrib/hstore/hstore_io.c 46 additions, 37 deletionscontrib/hstore/hstore_io.c
- contrib/hstore/hstore_op.c 76 additions, 72 deletionscontrib/hstore/hstore_op.c
- contrib/hstore_plperl/hstore_plperl.c 5 additions, 2 deletionscontrib/hstore_plperl/hstore_plperl.c
- contrib/hstore_plpython/hstore_plpython.c 5 additions, 3 deletionscontrib/hstore_plpython/hstore_plpython.c
Loading
Please register or sign in to comment