phpmyadmin / phpmyadmin/phpmyadmin

inline editing in "select distinct" does not quote the values correctly

Open
#15,523 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug help wanted waiting on upstream
Dominant language
PHP
Stars
7.9k
Forks
3.6k
Avg merge
4d 18h
Merged PRs (30d)
36

Description

Describe the bug

When editing a value inline after running a "select distinct" statement, the values generated by the SQL query have quotes missing, causing SQL error.

To Reproduce

Steps to reproduce the behavior:

  1. Run a "select distinct" statement on a table
  2. Click on a value to edit it
  3. See error
Expected behavior

The value is changed

Screenshots

If applicable, add screenshots to help explain your problem.
image

Server configuration
  • Operating system: Debian
  • Web server: Apache
  • Database version: MariaDB 10.3.18
  • PHP version: 7.3.3
  • phpMyAdmin version: 4.9.0.1
Client configuration
  • Browser: Chrome
  • Operating system: Ubuntu
Additional context

Add any other context about the problem here.

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

The issue names no files or tests. Reproduce inline editing after a SELECT DISTINCT query against MariaDB, then trace the generated update SQL and its value quoting; done means the edited value is correctly quoted and saved without a SQL error.

Written by the indexing model from the issue text.

Assessment

Tech stack
mariadb, php
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.