Prev: SQL compatibility reminder: MySQL vs PostgreSQL
Next: [HACKERS] C++ project using postgresql source
From: Tim Bunce on 5 Mar 2010 10:26 I encountered a core dump running PL/Perl installcheck with a very recent git HEAD of PostgreSQL and a not quite so recent git HEAD of perl. The cause is a subtle difference between SvTYPE(sv) == SVt_RV and SvROK(sv). The former is checking a low-level implementation detail while the later is directly checking "does this sv contains a reference". The attached patch fixes the problem by changing the SvTYPE check to use SvROK instead. Although I only tripped over one case, the patch changes all four uses of SvTYPE(sv) == SVt_RV. The remaining uses of SvTYPE are ok. Tim.
|
Pages: 1 Prev: SQL compatibility reminder: MySQL vs PostgreSQL Next: [HACKERS] C++ project using postgresql source |