fixed missing on new Exception
This commit is contained in:
parent
1b3e475b0f
commit
8137300bb5
|
|
@ -268,7 +268,7 @@ include "root.php";
|
||||||
//$this->dbh = new PDO('sqlite::memory:'); //sqlite 3
|
//$this->dbh = new PDO('sqlite::memory:'); //sqlite 3
|
||||||
}
|
}
|
||||||
catch (PDOException $error) {
|
catch (PDOException $error) {
|
||||||
throw Exception("Failed to create database: " . $error->getMessage());
|
throw new Exception("Failed to create database: " . $error->getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
//add additional functions to SQLite - bool PDO::sqliteCreateFunction ( string function_name, callback callback [, int num_args] )
|
//add additional functions to SQLite - bool PDO::sqliteCreateFunction ( string function_name, callback callback [, int num_args] )
|
||||||
|
|
@ -312,7 +312,7 @@ include "root.php";
|
||||||
$this->dbh->query($sql);
|
$this->dbh->query($sql);
|
||||||
}
|
}
|
||||||
catch (PDOException $error) {
|
catch (PDOException $error) {
|
||||||
throw new Exception("error creating database: " . $error->getMessage() . "\n" . $sql );
|
throw new Exception("error creating database: " . $error->getMessage() . "\n" . $sql );
|
||||||
}
|
}
|
||||||
$x++;
|
$x++;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue