修复数据插入BUG
This commit is contained in:
@@ -103,8 +103,6 @@ class db
|
||||
|
||||
$return = $this->query('SHOW FULL COLUMNS FROM ' . $table);
|
||||
while ($info = $return->fetch_assoc()) {
|
||||
if (!isset($data[$info['Field']])) {
|
||||
|
||||
if ($info['Field'] == 'ID' or $info['Field'] == 'id' or $info['Field'] == 'Id' or $info['Field'] == 'iD') {
|
||||
$data[$info['Field']] = '{nullvaluereplace}';
|
||||
} else if (stristr($info['Type'], 'int') || stristr($info['Type'], 'bigint') || stristr($info['Type'], 'integer') || stristr($info['Type'], 'double')) {
|
||||
@@ -112,8 +110,6 @@ class db
|
||||
} else {
|
||||
$data[$info['Field']] = '';
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
$column = '';
|
||||
$value = '';
|
||||
|
||||
Reference in New Issue
Block a user