We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Query with IN clause with one/more negative values is failing for INTEGER column

Question
6
Views
0
Comments
edited Jun 26, 2019 1:29PM in Integrations and APIs

Summary

WHERE clause contains mismatched data types in comparison

Content

I am trying to query the following in soap v1.3 and v1.4 and its throwing error message like : WHERE clause contains mismatched data types in comparison
 
select INTEGERCOL from GTABLE2 where INTEGERCOL in (-5,-15) order by INTEGERCOL
 
The same query is working fine with soap version 1.2
 
But the following query is working fine: 
select INTEGERCOL from GTABLE2 where INTEGERCOL in (5,15) order by INTEGERCOL
 
The query is failing if I include one/more negative numbers OR a null value in the IN clause. 
 
 
Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!