getFields notnull 错误

浏览:1102 发布日期:2020/05/09
5.0.0 - 严重 - 已处理
在tp6的版本中
vendor\topthink\think-orm\src\db\connector\Mysql.php
大约77行                $info[$val['field']] = [
                    'name' => $val['field'],
                    'type' => $val['type'],
                    'notnull' => (bool) ('' === $val['null']), // not null is empty, null is yes
                    'default' => $val['default'],
                    'primary' => (strtolower($val['key']) == 'pri'),
                    'autoinc' => (strtolower($val['extra']) == 'auto_increment'),
                    'comment' => $val['comment'],
                ];
这个bug 13年就有人反馈过了。到现在20年了 6.X的版本了 还存在
评论(
后面还有条评论,点击查看>>