schema 버그 수정. DB에서 Exception 제대로 안 던지는 버그 해결
This commit is contained in:
@@ -29,6 +29,8 @@ class RootDB
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
+3
-3
@@ -280,8 +280,8 @@ create table nation (
|
||||
###########################################################################
|
||||
## trade 100 이 표준 시세
|
||||
create table city (
|
||||
city int(6) not null auto_increment,
|
||||
name char(64) not null,
|
||||
`city` INT(6) NOT NULL AUTO_INCREMENT,
|
||||
`name` CHAR(64) NOT NULL,
|
||||
level int(1) default 0,
|
||||
upgrading int(1) default 0,
|
||||
nation int(6) default 0,
|
||||
@@ -312,7 +312,7 @@ create table city (
|
||||
state int(2) default 0,
|
||||
region int(2) default 0,
|
||||
term int(1) default 0,
|
||||
conflict varchar(500) default '{}'
|
||||
conflict varchar(500) default '{}',
|
||||
|
||||
PRIMARY KEY (city),
|
||||
KEY (nation)
|
||||
|
||||
Reference in New Issue
Block a user