a.binder 8 năm trước cách đây
mục cha
commit
cdb8761e4b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      SE/se-lib/Core/Database/Mysql.php

+ 1 - 1
SE/se-lib/Core/Database/Mysql.php

@@ -794,7 +794,7 @@ class Core_Database_Mysql extends Core_Database {
 		       										//DEBUG_S(-3,"\n BRAK TABELI  dodajemy : ".$TABLE."!!!",null,__FILE__,__FUNCTION__,__LINE__);
 
 		       										 $sql="create table `".$TABLE."` ( ".$ARR_TABLE['FIELDS'][0]->Field." ".$ARR_TABLE['FIELDS'][0]->Type ; //  ID int(11) NOT NULL AUTO_INCREMENT,
-														 if($ARR_TABLE['FIELDS'][0]->Null=='NO') $sql.=" not null "; else $sql.=" null ";
+														 if($ARR_TABLE['FIELDS'][0]->Null=='NO') $sql.=" not null "; else if($ARR_TABLE['FIELDS'][0]->Null=='YES') $sql.=" null ";
 														 //if($ARR_TABLE['FIELDS'][0]->Extra=='auto_increment') $sql.=" AUTO_INCREMENT "; else $sql.="  ";
 														$sql.=" ) ENGINE=MyISAM DEFAULT CHARSET=latin2 ";
 														 DEBUG_S(-3,"Brak tabeli: ".$TABLE." dodajemy sql:",$sql,__FILE__,__FUNCTION__,__LINE__) ;