Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Bitten by the lazy execution bug?

by robin (Chaplain)
on Dec 08, 2007 at 22:07 UTC ( #655888=note: print w/ replies, xml ) Need Help??


in reply to Bitten by the lazy execution bug?

What you're seeing is undoubtedly a bug. It obviously should not make any difference whether the variable has been used in a string.

It's quite easy to introduce bugs of this sort when writing XS code, if you're not careful. Magical scalars (such as $1) sometimes need special treatment. I would therefore guess that this is a bug in the DBI driver you're using.

Out of curiosity, I investigated this guess a little. You didn't say which driver you're using, but you mentioned that you're using MySQL, so I had a look at the DBD::mysql module on CPAN. In the ChangeLog I see the entry:

 * Make sure to handle "magical" values in a couple of places. (Bug #20104)

listed under the changes for version 4.001. So my guess would be that you're using an older version, and that you will find this bug fixed in the latest version of the driver module.


Comment on Re: Bitten by the lazy execution bug?
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://655888]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (11)
As of 2014-12-22 12:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (116 votes), past polls