Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: DBD::SQLite failing to return data?

by erix (Vicar)
on Nov 11, 2010 at 00:04 UTC ( #870736=note: print w/ replies, xml ) Need Help??


in reply to DBD::SQLite failing to return data?

no execute (after prepare)?


Comment on Re: DBD::SQLite failing to return data?
Re^2: DBD::SQLite failing to return data?
by aquarium (Curate) on Nov 11, 2010 at 00:12 UTC
    that was my initial thought also. so what happens if you execute?
    the hardest line to type correctly is: stty erase ^H
Re^2: DBD::SQLite failing to return data?
by BrowserUk (Pope) on Nov 11, 2010 at 00:14 UTC

    Bingo. It's been too long... Many thanks.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
      also are you wanting the data fetch loop to always exit using die?..as there's an endless loop.
      the hardest line to type correctly is: stty erase ^H
        also are you wanting the data fetch loop to always exit using die?.

        No. That was just a debugging strategy. In the normal way of things the loop is:

        while( my $data = $sth->fetchrow_arrayref ) { print "$data : @{ $data }"; }

        But doesn't give easy opportunity to output any errstr.


        Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
        "Science is about questioning the status quo. Questioning authority".
        In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (9)
As of 2014-12-20 17:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (97 votes), past polls