phpmyadmin / phpmyadmin/phpmyadmin

[simulation] For Insert, Where clause: IS NULL returns no results

Open
#16,970 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

affects/5.2 Bug UI
Dominant language
PHP
Stars
7.9k
Forks
3.6k
Avg merge
4d 18h
Merged PRs (30d)
36

Description

5.1.1
Simulating a SQL query: UPDATE `orders_status_history` SET `comments`='' WHERE `comments` IS NULL;
When typing, "IS NULL" is not suggested in a popup, the simulation is not flagged as incorrect but the result is (incorrectly) no rows.

While this may not be a bug I find no reference to explain it.

Contributor guide

Open the contributing guide

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

Start by reproducing the UPDATE query in phpMyAdmin's simulation interface, checking both the IS NULL suggestion and the reported zero-row result. Trace the simulation path for WHERE clauses and compare its handling of NULL with the actual MySQL or MariaDB query; done means the simulation reports the correct result and handles IS NULL consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
sql
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.