in reply to Perl XS - is this code required in DBD::Pg?
It does something when SvROK(ST(2)) is true on entry, but it looks like a bug. (It's replacing a reference to the buf with the buf itself as a I read it.)
Update: More precisely, it's changing the contents of the scalar passed to the function from a reference to a string containing a copy of the buf. It does so for the sole purpose of calling SvSETMAGIC on the wrong variable.
|
|---|