Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: DBI fails to return an error code

by mje (Curate)
on Oct 10, 2011 at 08:20 UTC ( #930551=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use DBI;
    ...
    #####}
    #####$sqlh->finish;
    $h->disconnect;
    
  2. or download this
    DBD::mysql::st execute failed: Unknown column 'DCredits' in 'field lis
    +t' at /home/martin/930402.pl line 45.
    <p>There was a problem: executing query.</p>
    <p><i>Attempted command:</i> SELECT DCredits, Price, Description FROM 
    +test.CUSTOMER_PLAN WHERE Name='Free'</p>
    <p><i>Error:</i> 1054 - Unknown column 'DCredits' in 'field list'</p>
    
  3. or download this
        -> prepare for DBD::mysql::db (DBI::db=HASH(0x9f482a0)~0x9f483c0 '
    +SELECT DCredits, Price, Description FROM test.CUSTOMER_PLAN WHERE Nam
    +e='Free'') thr#9dd4008
        New 'DBI::st' (for DBD::mysql::st, parent=DBI::db=HASH(0x9f483c0),
    + id=undef)
    ...
        -> $DBI::errstr (&) FETCH from lasth=HASH
        >> DBD::mysql::st::errstr
        <- $DBI::errstr= 'Unknown column 'DCredits' in 'field list''
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (14)
As of 2015-07-06 15:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (77 votes), past polls