]
Steven Hawkins commented on TEIID-4008:
---------------------------------------
This isn't directly related to this fix. Postgresql is complaining because the default
type is string for a select literal (which is really odd behavior sometimes). In most any
other position in the query, this would work as expected. I'll just address under
this same issue.
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'.