[ODBC-62] Problem with export from ACCESS Created: 2016-10-21  Updated: 2017-03-17  Resolved: 2017-03-11

Status: Closed
Project: MariaDB Connector/ODBC
Component/s: None
Affects Version/s: 2.0.12
Fix Version/s: 2.0.14, 3.0.1

Type: Bug Priority: Major
Reporter: Lawrin Novitsky Assignee: Lawrin Novitsky
Resolution: Fixed Votes: 0
Labels: None


 Description   

(copying from here)
" I have a problem with the connection between ACCESS (2010), running with W7, and a MariaDB installed on a Synology NAS (DS212J).

Test of DSN is OK. Import and link tables from NAS towards ACCESS are OK.

But export from ACCESS is impossible: An alert message says: " ODBC l'appel a échoué (the call failed) [ma-2.0.10][5.5.49-MariaDB]You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '#O),'C_UFR' INTEGER('#O),'U_SECRETARIAT' VARCHAR,'U-2SECRETARIAT' VAR at line 1 (#1064) "

I thank you for your help Jean-Louis PIERREY

Complementary Infos:

The problem is the same with 1.0.6 2.0.10 2.0.11 releases of mariadb connector (32 and 64 bits)
C_UFR, U_SECRETARIAT and U_2SECRETARIAT are the three first fields of the table i try to export.
Setting of the NAS: • Serveur : Localhost via UNIX socket • Type de serveur : MariaDB • Version du serveur : 5.5.49-MariaDB - Source distribution • Version du protocole : 10 • Jeu de caractères du serveur : UTF-8 Unicode (utf8)
Serveur Web: • nginx/1.9.11 • Version du client de base de données : libmysql - mysqlnd 5.0.11-dev - 20120503 - $Id: 76b08b24596e12d4553bd41fc93cccd5bac2fe7a $ • Extension PHP : mysqli curl mbstring • Version de PHP : 5.6.21 "



 Comments   
Comment by Lawrin Novitsky [ 2017-03-11 ]

The fix and tests have been pushed (to odbc-2.0 branch only so far) as rev. 939c88881e9b4dd04d5746e1237d155c998e7bbe
The problem was bad data returned in SQLGetTypeInfo, causing Access to generate bad CREATE TABLE statements.

Generated at Thu Feb 08 03:25:56 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.