Bug 84872
Summary: | [patch] MyODBC wants to use "." as decimal point when talking to MySQL, but does not set numeric locale correctly | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 4 | Reporter: | shrek-m <shrek-m> | ||||
Component: | MyODBC | Assignee: | Tom Lane <tgl> | ||||
Status: | CLOSED ERRATA | QA Contact: | David Lawrence <dkl> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 4.0 | CC: | caolanm, hhorak | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | RHEL4U3NAK | ||||||
Fixed In Version: | RHBA-2007-0291 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2007-05-01 17:19:32 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
shrek-m
2003-02-22 16:58:02 UTC
caolanm->shrek-m: Is this still the case with a contemporary OpenOffice.org ? $ cat /etc/fedora-release Fedora Core release 3 (Heidelberg) $ rpm -q openoffice.org unixODBC mysql mysql-server openoffice.org-1.1.2-11.5.fc3 unixODBC-2.2.9-1 mysql-3.23.58-13 mysql-server-3.23.58-13 - create a new userDSN with $ ODBCConfig - create a new dadasource (MySQL or ODBC) - create a new table (without primary key) OOo will create a primary key - insert data for each new row i have to close the connection "Fehler beim Einfügen des neuen Datensatzes [unixODBC][TCX\MyODBC] You have an error in your SQL syntax near 00000000000e+01' at line 1" - changing existing entries is possible ------- OOPS, LANG=C oowriter /*all is OK*/ LANG=de_DE oowriter /*"ERROR*/ $ env | grep LANG LANG=de_DE.UTF-8 it seems that the LANG is the problem Argh!, I found it. A problem with setlocale in MyODBC. Created attachment 107765 [details]
patch to fix MyODBC
setlocale(LC_NUMERIC,"English") -> setlocale(LC_NUMERIC,"C");
My, that's ugly :-( ... will fix. Thanks for the detective work! Caolan, how far back are we supporting OpenOffice? I'm wondering which releases I need to put this fix into ... Each OOo update we do we push simultaneously for FC2/FC3/RHEl-4/rawhide I've pushed this fix into fc2, fc3, and rawhide, but it's too late for RHEL4 :-( ... it'll have to go into U1. I'll leave the bug report open to remind me to do that when the U1 window opens. Adjust bz entry to mention RHEL4. Just for completeness, this problem was reported to MySQL some time ago, and only partially fixed: http://bugs.mysql.com/bug.php?id=371 i do not now if it is fixed, i do not use rhel. please close it, i have no permission. ciao This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release. An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2007-0291.html |