Skip to content

Syntax Error: WHERE BINARY(my_column) != BNINARY(UPPER(my_column) #12762

@eugenekunkel

Description

@eugenekunkel

Steps to reproduce

  1. Go to "SQL" tab (db_sql.php)
  2. Run a query like this:
SELECT my_column
FROM my_table
WHERE BINARY(my_column) != BINARY(UPPER(my_column))

The built in phpMyAdmin syntax checker throws up a warning (see bug.jpg screenshot).

Expected behaviour

The syntax checker should not be giving an error for that query.

Actual behaviour

The query always gets a syntax error, but when I actually execute the query, it runs fine.

bug

Server configuration

Operating system: RHEL, Windows 7, Windows 10

Web server: Apache

Database: MySQL 5.7, MySQL 5.5

PHP version: 5.6

phpMyAdmin version: 4.5.2, 4.6.0

Client configuration

Browser: Firefox 50.0.1

Operating system: Windows 7, Windows 10

Notes

Again, as mentioned above, the query actually runs fine. All that's wrong is the syntax error that phpMyAdmin keeps giving me. I searched to see if this bug already exists but couldn't find anything. I apologize if this has already been reported.

Metadata

Metadata

Assignees

Labels

BugA problem or regression with an existing featureparser

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions