top-think / top-think/think-orm

mysql取得数据表的字段信息方法中关于notnull判断的问题

Open
#86 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.