Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: DBI fails to return an error code

by mje (Deacon)
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 making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2014-08-23 17:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (175 votes), past polls