Escape Character Not Being Recognized (Doc ID 2027919.1)

Last updated on MARCH 08, 2017

Applies to:

MySQL Connectors - Version 6.8 and later
MySQL Server - Version 5.5 and later
Information in this document applies to any platform.

Symptoms

On : 5.6 version, DML SQL Statements

When attempting to run a prepared statement with escaped character,
the following error occurs.

ERROR
-----------------------
_mysql_exceptions.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''user\\\\G;'' at line 1")


STEPS
-----------------------
The issue can be reproduced at will with the following code:


BUSINESS IMPACT
-----------------------
The issue has the following business impact:
Due to this issue, users cannot get escaped characters working in mysql.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms