You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1bakedpotato opened this issue
Apr 3, 2022
· 1 comment
· Fixed by #17476
Assignees
Labels
BugA problem or regression with an existing featurehas-prAn issue that has a pull request pending that may fix this issue. The pull request may be incomplete
When browsing a table that uses a POINT column in its PRIMARY/UNIQUE key, phpMyAdmin will generate invalid per-row WHERE conditions in that there's a superfluous trailing AND keyword. This results in SQL errors when clicking any blob field's download link or the row's edit/copy/delete links.
To Reproduce
Create test table (engine seems to not matter, so long as it supports the POINT type):
CREATETABLEpmabug (
id int(11) NOT NULL,
coord pointNOT NULL,
UNIQUE(coord)
) ENGINE=InnoDB;
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
BugA problem or regression with an existing featurehas-prAn issue that has a pull request pending that may fix this issue. The pull request may be incomplete
Describe the bug
When browsing a table that uses a
POINTcolumn in itsPRIMARY/UNIQUEkey, phpMyAdmin will generate invalid per-rowWHEREconditions in that there's a superfluous trailingANDkeyword. This results in SQL errors when clicking any blob field's download link or the row's edit/copy/delete links.To Reproduce
POINTtype):PRIMARY/UNIQUEkey and that per-row Edit/Copy/Delete links are available.Expected behavior
The normal UI for editing a unique row's values is displayed.
Actual behavior
A SQL query error is displayed, with the malformed query looking like:
Server configuration
Client configuration
The text was updated successfully, but these errors were encountered: