Issue 21719 - Cannot read table - MySQL - unixODBC
Summary: Cannot read table - MySQL - unixODBC
Status: CLOSED IRREPRODUCIBLE
Alias: None
Product: Base
Classification: Application
Component: code (show other issues)
Version: OOo 1.1
Hardware: PC Linux, all
: P3 Trivial (vote)
Target Milestone: OOo 2.0
Assignee: marc.neumann
QA Contact: issues@dba
URL:
Keywords: needmoreinfo, oooqa
Depends on:
Blocks:
 
Reported: 2003-10-26 09:09 UTC by mpupat
Modified: 2006-05-31 14:29 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description mpupat 2003-10-26 09:09:02 UTC
When I try to read a table in my SQL database, I get the message : 
 
Syntax error or access violation,  message from server: "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 'impression'' at line 1" 
 
Then I cannot do anything with my database.
Comment 1 mpupat 2003-10-26 09:28:40 UTC
The probleme was I had a column named 'Mode 'd'impression'. I 
think the qimple quote was not supported. Note that tools such as 
PHP my admin manages it well. 
Comment 2 Frank Schönheit 2003-10-27 08:46:09 UTC
correcting sub component (see
http://www.openoffice.org/issues/describecomponents.cgi?component=Database%20access,
please), and default owner
Comment 3 christoph.lukasiak 2003-10-28 10:49:35 UTC
my area
Comment 4 christoph.lukasiak 2003-10-28 13:13:29 UTC
clu->mpupat: so you have resolved the problem or ist still exist? 
please discribe the bug (if still exist) step by step

thx
Comment 5 mpupat 2003-10-28 18:18:47 UTC
I resolved the problem by ranaming my column "Mode d'impression" in "Mode 
d_impression" but the problem still exists : if you have a column with a single 
quote in it, you get the message show below 
Comment 6 Frank Schönheit 2003-10-29 08:18:00 UTC
mpupat, do you mind trying other column names with single quotes? I
suppose it may *not* be the quote, but the single "d" character, which
may confuse our parser (since D is a keyword in some circumstances).
It's just an idea.
Comment 7 christoph.lukasiak 2003-11-11 15:31:52 UTC
CLU->protocol:i tried a french office and it works for me well - even
with ' and stand alone d (i also used mpupats example without foults)
means: generally it seems to work


CLU->mpupat: must be a very special problem - please add your comment,
if you have any new information that can maybe help to detect the
deeper reasen 

i guess, that you created your table (or added the invalid column) in
the office and not directly on your MySQL database, right? if not,
please try it out and add your experience
Comment 8 christoph.lukasiak 2003-12-01 14:20:48 UTC
CLU->All: can anybody repro the described behavior? please give me a
hint and add a proper description
Comment 9 christoph.lukasiak 2003-12-15 15:20:43 UTC
over a month (two weeks) no respond - not to repro, so i close this issue
Comment 10 mpupat 2004-01-27 16:59:53 UTC
I have to see this but I cannot reinstall my SQL <-> OOo link 
Comment 11 hans_werner67 2004-02-02 12:19:10 UTC
change subcomponent to 'none'
Comment 12 mpupat 2005-02-10 15:22:04 UTC
I finally re-installed an Ooo <-> MySQL link.

I re-open this to remember testing it.

Sorry for the delay.
Comment 13 mpupat 2005-02-10 17:44:24 UTC
I'm using OOo1.9.74 and still have the problem.

With a field named `mode d'impression`, I get:

SQL Status: 42000
Error code: 1064

[unixODBC][TCX][MyODBC]You have an error in your SQL syntax near 'VIEW `View1`
AS SELECT `Mode d'impression` FROM `France` `France` WHERE ( ( `Mod' at line 1

In fact it seems to happen with almost any name .....
Comment 14 christoph.lukasiak 2005-02-14 13:43:18 UTC
clu->msc: a unixODBC problem? can you repro that?
Comment 15 flibby05 2005-04-03 13:53:11 UTC
hi mpupat,
which versions do you use? MySQL? unixODBC? distro? French locale?
Comment 16 flibby05 2005-04-24 15:25:44 UTC
no response for 2 weeks,
closing for now,
mpupat, please add info as requested,
thanks, Max
Comment 17 flibby05 2005-04-24 15:26:04 UTC
.