46 if ( $message ===
null ) {
48 $message =
"A connection error occurred during a query. \n" .
50 "Function: $fname\n" .
51 "Error: $errno $error\n";
53 $message =
"A database query error has occurred. Did you forget to run " .
54 "your application's database schema updater after upgrading? \n" .
56 "Function: $fname\n" .
57 "Error: $errno $error\n";
61 parent::__construct(
$db, $message );
73class_alias( DBQueryError::class,
'DBQueryError' );