top-think / top-think/think-orm
mysql取得数据表的字段信息方法中关于notnull判断的问题
Open
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 437
- Forks
- 188
- PR merge metrics
- No merged PRs in 30d
Description
数据库版本mysql8.0
think-orm\src\db\connector\Mysql.php 77行
dump($val['null']); 返回类型字符串 值为YES或者NO
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The reported location is think-orm/src/db/connector/Mysql.php around line 77; first inspect how the field metadata value null is consumed and reproduce the dump on MySQL 8. Trace the not-null decision for YES and NO, then verify the field information output against the expected semantics.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- mysql, php
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 45/100