Problems Selecting Mysql Blob Data Using Hsodbc - Error In Your SQL Syntax (Doc ID 739274.1)

Last updated on JANUARY 19, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 10.1.0.2 to 10.2.0.2 [Release 10.1 to 10.2]
Information in this document applies to any platform.
Checked for relevance on 15-Nov-2010


Symptoms

Trying to select BLOB data from MySQL using 10g HSODBC and MySQL ODBC drivers gives the following error -

SQL> select * from test_blob@mysql ;
ERROR:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:

Generic Connectivity Using ODBC][MySQL][ODBC 3.51
Driver][mysqld-5.0.24a-community-nt]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 '"TEST_BLOB" WHERE "col1"='Bill '' at line 1 (SQL State: 37000; SQL
Code: 1064)
ORA-02063: preceding 2 lines from 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