New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid behavior in convertBitDefaultValue (escape_mysql_wildcards) helper #15831
Comments
|
Hi, I'm interested in working on this issue. Is that okay? 🙂 |
|
hello @CoreyBuckley |
Fixes the issue described in phpmyadmin#15831. Signed-off-by: Corey Buckley <coreybuckley13@gmail.com>
Fixes the issue described in phpmyadmin#15831. Signed-off-by: Corey Buckley <coreybuckley13@gmail.com>
|
Maybe write tests for that? |
|
I'm not sure how to do that 😅 I can see that there is a function for testing convertBitDefaultValue already in test/classes/UtilTest.php, but I'm not sure where I would add the actual test case.. |
|
I noticed in the log from Travis that for the test I'm failing it uses the input In Util.php convertBitDefaultValue has the comment /*
Converts a BIT type default value
* for example, b'010' becomes 010
*/Should there also be an example in the comment like: /*
Converts a BIT type default value
* for example, b'010' becomes 010
* or, "b'01" becomes "01"
*/? |
Fixes the issue described in phpmyadmin#15831. Signed-off-by: Corey Buckley <coreybuckley13@gmail.com>
I will add comments on the PR to help you |
Fixes the issue described in phpmyadmin#15831. Signed-off-by: Corey Buckley <coreybuckley13@gmail.com>
Signed-off-by: William Desportes <williamdes@wdes.fr>
Describe the bug
Page
server_privilegeshave option list with list of databases. If database starts withb(likebig) option value hasig, but title seems correct.To Reproduce
Steps to reproduce the behavior:
big_databaseDatabasetabbig_databaseinAdd privileges on the following database(s):options list and clickGoGo, than you will see query likeGRANT SELECT, INSERT, UPDATE, DELETE ON ig_database.* TO 'pma'@'192.168.30.%';Expected behavior
Database should be
big_databaseScreenshots
Server configuration
Demo page from https://demo.phpmyadmin.net/
Client configuration
Chrome 79, Ubuntu linux
The text was updated successfully, but these errors were encountered: