Lines Matching refs:errors
9 errdb.pl [options] ../../src/bin/errors
13 -d,--database=db Specify path to errors.db
28 my $errdb = "errors.db";
43 # Create errors table if necessary
45 $dbh->selectall_arrayref ( "SELECT * FROM errors LIMIT 1" );
48 print "Creating errors table\n" if $verbosity >= 1;
49 $dbh->do ( "CREATE TABLE errors (".
66 " FOREIGN KEY ( errno ) REFERENCES errors ( errno ) )" );
71 my $errors = {};
76 $errors->{$errno} = $description;
82 # Ensure all errors are present in database
84 $dbh->prepare ( "UPDATE errors SET description = ? WHERE errno = ?" );
85 my $error_insert = $dbh->prepare ( "INSERT INTO errors VALUES ( ?, ? )" );
86 while ( ( my $errno, my $description ) = each %$errors ) {