[
https://issues.jboss.org/browse/TEIID-4008?page=com.atlassian.jira.plugin...
]
Juraj Duráni reopened TEIID-4008:
---------------------------------
Fix does not work for postgresql translator.
*Query:* SELECT x'FF' FROM source.malla
*Source-specific command:* {code:sql}SELECT E'\\xFF' FROM "smalla" AS
g_0{code}
*Exception:*
{code:text}
14:32:03,369 WARN [org.teiid.PROCESSOR] (Worker2_QueryProcessorQueue21) TEIID30020
Processing exception for request 4Z+LBdlIhjK4.7 'TEIID10076 Invalid conversion from
type class java.lang.String with value '\xFF' to type class
org.teiid.core.types.BinaryType'. Originally TransformationException
DataTypeManager.java:931.: org.teiid.core.types.TransformationException: TEIID10076
Invalid conversion from type class java.lang.String with value '\xFF' to type
class org.teiid.core.types.BinaryType
at org.teiid.core.types.DataTypeManager.transformValue(DataTypeManager.java:931)
[teiid-common-core-8.7.5.6_2-redhat-1.jar:8.7.5.6_2-redhat-1]
at
org.teiid.dqp.internal.datamgr.ConnectorWorkItem.correctTypes(ConnectorWorkItem.java:531)
[teiid-engine-8.7.5.6_2-redhat-1.jar:8.7.5.6_2-redhat-1]
at
org.teiid.dqp.internal.datamgr.ConnectorWorkItem.handleBatch(ConnectorWorkItem.java:398)
[teiid-engine-8.7.5.6_2-redhat-1.jar:8.7.5.6_2-redhat-1]
at org.teiid.dqp.internal.datamgr.ConnectorWorkItem.more(ConnectorWorkItem.java:207)
[teiid-engine-8.7.5.6_2-redhat-1.jar:8.7.5.6_2-redhat-1]
at
org.teiid.dqp.internal.process.DataTierTupleSource.getResults(DataTierTupleSource.java:301)
[teiid-engine-8.7.5.6_2-redhat-1.jar:8.7.5.6_2-redhat-1]
at
org.teiid.dqp.internal.process.DataTierTupleSource$1.call(DataTierTupleSource.java:110)
[teiid-engine-8.7.5.6_2-redhat-1.jar:8.7.5.6_2-redhat-1]
at
org.teiid.dqp.internal.process.DataTierTupleSource$1.call(DataTierTupleSource.java:107)
[teiid-engine-8.7.5.6_2-redhat-1.jar:8.7.5.6_2-redhat-1]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0-internal]
at org.teiid.dqp.internal.process.FutureWork.run(FutureWork.java:58)
[teiid-engine-8.7.5.6_2-redhat-1.jar:8.7.5.6_2-redhat-1]
at org.teiid.dqp.internal.process.DQPWorkContext.runInContext(DQPWorkContext.java:274)
[teiid-engine-8.7.5.6_2-redhat-1.jar:8.7.5.6_2-redhat-1]
at
org.teiid.dqp.internal.process.ThreadReuseExecutor$RunnableWrapper.run(ThreadReuseExecutor.java:119)
[teiid-engine-8.7.5.6_2-redhat-1.jar:8.7.5.6_2-redhat-1]
at org.teiid.dqp.internal.process.ThreadReuseExecutor$3.run(ThreadReuseExecutor.java:210)
[teiid-engine-8.7.5.6_2-redhat-1.jar:8.7.5.6_2-redhat-1]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[rt.jar:1.8.0-internal]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[rt.jar:1.8.0-internal]
at java.lang.Thread.run(Thread.java:744) [rt.jar:1.8.0-internal]
{code}
Sending teiid varbinary value (x'') to Microsoft SQL Server
errors
------------------------------------------------------------------
Key: TEIID-4008
URL:
https://issues.jboss.org/browse/TEIID-4008
Project: Teiid
Issue Type: Bug
Components: JDBC Connector
Affects Versions: 8.7.2.6_2
Reporter: Debbie Steigner
Assignee: Steven Hawkins
Fix For: 9.0, 8.12.5, 8.13.2, 8.7.5.6_2
When sending a query to Microsoft SQL Server with a varbinary in criteria:
select * from debBinary where ipv6= x'FFFF6BBE85D8'
It pushes the criteria to Microsoft SQL Server, but as X'FFFF6BBE85D8'[1] so
Microsoft gives the syntax error[2] and needs to just be select * from debBinary where
ipv6= 'FFFF6BBE85D8':
[1]14:26:08,951 DEBUG [org.teiid.CONNECTOR] (Worker1_QueryProcessorQueue8)
Source-specific command: SELECT g_0."id", g_0."ipv6" FROM
"bqt2"."dbo"."debbinary" g_0 WHERE g_0."ipv6" =
X'FFFF6BBE85D8'
[2] com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near
'FFFF6BBE85D8'.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)