Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ddl: tiny refine the
checkForNullValue
function. (pingcap#11833)
change "select count(*) from `%s`.`%s` where `%s` is null limit 1" to "select 1 from `%s`.`%s` where `%s` is null limit 1" The later would return when the first row meets the condition, thus scanning the whole table is avoided
- Loading branch information