Bug 1144256 - Result of query depends on Locale
Summary: Result of query depends on Locale
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Data Virtualization 6
Classification: JBoss
Component: Teiid
Version: 6.1.0
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ER3
: 6.1.0
Assignee: Van Halbert
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-19 06:03 UTC by Juraj Duráni
Modified: 2016-02-10 08:53 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-02-10 08:53:40 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
log for mysql 5.5 (17.68 KB, text/plain)
2014-09-19 06:03 UTC, Juraj Duráni
no flags Details
log for oracle 10 (18.45 KB, text/plain)
2014-09-19 06:03 UTC, Juraj Duráni
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker TEIID-3135 0 Major Closed Result of query depends on Locale 2014-11-20 15:06:52 UTC

Description Juraj Duráni 2014-09-19 06:03:11 UTC
Created attachment 939095 [details]
log for mysql 5.5

Description: Some kind of queries ends with SQL syntax error (or incorrect result) because of real numbers are translated to locale-specific-string (e.g. -24 => -24,0 for sk_SK locale).

Testing environment:
a) Locale: sk_SK (Slovakia), cs_CZ(Czech)
b) OS: fedora 20
c) arch: x86_64
d) java: sun 1.7, openJDK_1.7

Steps to reproduce:
1. change default locale to sk_SK or cs_CZ (fedora 20: terminal -> export LC_ALL=sk_SK.utf8)
2. start DV server (in same terminal window)
3. connect to some VDB wich is connected to relational DB and run query (at least one column with double value is needed):
	SELECT <double-value-column> FROM <your-table> WHERE <double-value-column> = -24
4. e.g. VDB with underlying DB mysql 5.5:
	Exception (root): com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax...
5. e.g. VDB with underlying DB oracle 10:
	Exception (root): java.sql.SQLSyntaxErrorException: ORA-00907: missing right parenthesis

Comment 1 Juraj Duráni 2014-09-19 06:03:51 UTC
Created attachment 939096 [details]
log for oracle 10

Comment 2 Juraj Duráni 2014-09-19 06:12:38 UTC
Same query has no problem, if underlying source is file (e.g. *.xlsx).

Comment 3 JBoss JIRA Server 2014-09-19 17:45:39 UTC
Steven Hawkins <shawkins> updated the status of jira TEIID-3135 to Resolved

Comment 4 JBoss JIRA Server 2014-11-20 15:06:52 UTC
Steven Hawkins <shawkins> updated the status of jira TEIID-3135 to Closed


Note You need to log in before you can comment on or make changes to this bug.