Author: timbo
Date: Wed Dec 5 09:55:05 2012
New Revision: 15498
Modified:
dbi/trunk/Changes
dbi/trunk/DBI.xs
Log:
Fixed RT#81724 - Handle copy-on-write scalars (sprout)
Modified: dbi/trunk/Changes
==============================================================================
--- dbi/trunk/Changes (original)
+++ dbi/trunk/Changes Wed Dec 5 09:55:05 2012
@@ -14,6 +14,7 @@
Fixed RT#64330 - ping wipes out errstr (Martin J. Evans).
Fixed RT#80474 - segfault in DESTROY with threads.
Fixed RT#75868 - DBD::Proxy shouldn't call connected() on the server.
+ Fixed RT#81724 - Handle copy-on-write scalars (sprout)
Fixed unused variable / self-assignment compiler warnings.
Corrected typo in DBI->installed_versions docs RT#78825
Modified: dbi/trunk/DBI.xs
==============================================================================
--- dbi/trunk/DBI.xs (original)
+++ dbi/trunk/DBI.xs Wed Dec 5 09:55:05 2012
@@ -1975,6 +1975,7 @@
&& SvPVX(sv) /* we have a buffer to discard */
) {
SvOOK_off(sv);
+ sv_force_normal(sv);
if (SvLEN(sv))
Safefree(SvPVX(sv));
SvPOK_off(sv);