schema 버그 수정. DB에서 Exception 제대로 안 던지는 버그 해결

This commit is contained in:
2018-04-17 00:18:38 +09:00
parent 7a5eecc3e1
commit 48088748df
3 changed files with 7 additions and 3 deletions
+2
View File
@@ -27,6 +27,8 @@ class DB{
if(self::$uDB === null){
self::$uDB = new \MeekroDB(self::$host,self::$user,self::$password,self::$dbName,self::$port,self::$encoding);
self::$uDB->connect_options[MYSQLI_OPT_INT_AND_FLOAT_NATIVE] = true;
self::$uDB->error_handler= function(){};
self::$uDB->throw_exception_on_error = true;
self::$uDB->throw_exception_on_nonsql_error = true;
}