Phpmyadmin: Move operation causes SELECT * FROM `undefined`

Created on 28 Sep 2018  路  3Comments  路  Source: phpmyadmin/phpmyadmin

Describe the bug

When using the move action in the operations tab the next view incorrectly selects from the table name undefined

To Reproduce

Steps to reproduce the behavior:

CREATE TABLE `1_test` (
 `foo` tinyint(3) unsigned NOT NULL,
 PRIMARY KEY (`foo`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci

Operations Tab > Move table to (database.table) > Enter any new name > Go
Table is moved correctly
Following page shows Table: undefined

SELECT * FROM `undefined` WHERE 1

Expected behavior

Following view after move should select from correct table name

Screenshots

image

image

Server configuration

  • Database version: 10.2.15-MariaDB
  • phpMyAdmin version: 4.8.3
bug has-pr

Most helpful comment

@wincdev You can fork this repository and do the fix on your fork then create a pull-request :)

https://help.github.com/articles/creating-a-pull-request-from-a-fork/
https://help.github.com/articles/creating-a-pull-request/

We will review your fix when you create a pull-request ;)

PS: dont forget to signoff in the last line of your commit message: Signed-off-by: Random Developer <[email protected]>

git commit --amend --signoff if you forgot to signoff

All 3 comments

Affects master and QA_4_8

Hi,
I have fix for this bug. Where can I push this fix? I do not access rights for create new branch.

@wincdev You can fork this repository and do the fix on your fork then create a pull-request :)

https://help.github.com/articles/creating-a-pull-request-from-a-fork/
https://help.github.com/articles/creating-a-pull-request/

We will review your fix when you create a pull-request ;)

PS: dont forget to signoff in the last line of your commit message: Signed-off-by: Random Developer <[email protected]>

git commit --amend --signoff if you forgot to signoff

Was this page helpful?
0 / 5 - 0 ratings