intermediary has asked for the wisdom of the Perl Monks concerning the following question:
However, as the exe, it always returns 0. What's baffling is that the following code returns 1 record in both versions :$VAR{q} = qq~SELECT * FROM table~; $VAR{x} = $DBCONN->query($VAR{q}); $VAR{n} = $VAR{x}->numrows;
Could it be some sort of Mysql privilege problem? I search high and low in google, and only found one case of a similar problem, but no solution, here :$VAR{q} = qq~SELECT COUNT(*) FROM table~; $VAR{x} = $DBCONN->query($VAR{q}); $VAR{n} = $VAR{x}->numrows;
With any luck, there'll be more potential solutions, than negative comments, provided here. What else could the problem be?http://perlguru.com/gforum.cgi?post=44983;guest=
Connecting to the wrong database :)========================================== Update ==========================================
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Par::Packer MySQL Select query returns 0 records # hiding proprietary code
by ww (Archbishop) on Apr 21, 2014 at 23:51 UTC | |
by jellisii2 (Hermit) on Apr 22, 2014 at 12:19 UTC | |
|
Re: Par::Packer MySQL Select query returns 0 records
by Anonymous Monk on Apr 21, 2014 at 19:02 UTC |