Log Message:
-----------
Moving Exception handling to DB.pm from DB::Schema
Modified Files:
--------------
webwork2/lib/WeBWorK/DB/Schema/NewSQL:
Std.pm
Revision Data
-------------
Index: Std.pm
===================================================================
RCS file: /webwork/cvs/system/webwork2/lib/WeBWorK/DB/Schema/NewSQL/Std.pm,v
retrieving revision 1.20
retrieving revision 1.21
diff -Llib/WeBWorK/DB/Schema/NewSQL/Std.pm -Llib/WeBWorK/DB/Schema/NewSQL/Std.pm -u -r1.20 -r1.21
--- lib/WeBWorK/DB/Schema/NewSQL/Std.pm
+++ lib/WeBWorK/DB/Schema/NewSQL/Std.pm
@@ -308,7 +308,7 @@
my $self = shift;
my $stmt = $self->_exists_table_stmt;
my $result = eval { $self->dbh->do($stmt); };
- ( caught WeBWorK::DB::Schema::Ex::TableMissing ) ? 0:1;
+ ( caught WeBWorK::DB::Ex::TableMissing ) ? 0:1;
}
sub _exists_table_stmt {
@@ -772,8 +772,8 @@
# maps error numbers to exception classes for MySQL
our %MYSQL_ERROR_CODES = (
- 1062 => 'WeBWorK::DB::Schema::Ex::RecordExists',
- 1146 => 'WeBWorK::DB::Schema::Ex::TableMissing',
+ 1062 => 'WeBWorK::DB::Ex::RecordExists',
+ 1146 => 'WeBWorK::DB::Ex::TableMissing',
);
# turns MySQL error codes into exceptions -- WeBWorK::DB::Schema::Ex objects
|