Fixed #3830 Can't export custom query because it lowercases table names - Latestgit #176

merged 2 commits into from Feb 21, 2013


None yet

3 participants


The problem is when exporting some selected rows of an uppercase table, the exported dump doesn't contain insert statement for those selected rows. The problem caused because inside the code it transform the sql statement to lowercase and in-turn it will make the table name to lowercase.


explode function is not case sensitive. what if query is in uppercase ? You may need temp variable to do this.

@hisamith hisamith Used preg_split() instead of explode() to split sql query,
Since explode is case sensitive and if table or column contains substring "where" it will give an error
@lem9 lem9 was assigned Feb 21, 2013

Looks correct to me.

@lem9 lem9 merged commit b84ec72 into phpmyadmin:master Feb 21, 2013

1 check passed

Details default The Travis build passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment