Hi!
Am Do, den 10.03.2005 schrieb sam um 14:55: > Hi, > > The perl DBI does not prints error message: > $sth = $dbh->prepare($insert_sql) > || print ERRFILE_OUT "prepare: $insert_sql: $DBI::errstr"; > > The out of this error only does not print why the error was occurred. > eg. > Unable to execute query: DBI::db=HASH(0x8647df0)->errstr: "Works as designed" (but not as intended ... ) > > Dan anyone please tell me how to prints how a description of the error > from DBI when sql executed failed? By using "or" where you used "||". Both do an "or" operation, but have different priorities relative to the "=" assignment. See the example in "Programming Perl" (Wall, Christiansen, Schwartz) on page 89 (and other Perl references). HTH, Joerg -- Joerg Bruehe, Senior Production Engineer MySQL AB, www.mysql.com -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]