Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access 7.1.081
  HXTT Cobol 5.0.081
  HXTT DBF 7.1.081
  Buy Now
  HXTT Excel 6.1.085
  HXTT Json 1.0.053
  HXTT Paradox 7.1.081
  HXTT PDF 2.0.081
  HXTT Text(CSV) 7.1.081
  HXTT Word 1.1.081
  HXTT XML 4.0.082
Offshore Outsourcing
Free Resources
  Firewall Tunneling
  Search Indexing Robot
  Conditional Compilation
  Password Recovery for MS Access
  Password Recovery for Corel Paradox
  Checksum Tool for MD5
  Character Set Converter
  Pyramid - Poker of ZYH
Heng Xing Tian Tai Lab of Xi'an City (abbr, HXTT)

"field" IN (subquery) does not accept NULL values
Robbert Jan Grootjans
2010-12-22 08:41:49.0
If the following query is executed and the subquery returns a single value, an exception is thrown.

SELECT * FROM table t1 WHERE t1."foo" IN (SELECT t2."bar" FROM table t2)

[Error Code: 393216, SQL State: 60000] java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [[B
at com.hxtt.sql.dbf.i.if(Unknown Source)
at com.hxtt.sql.a1.a(Unknown Source)
at Source)
at com.hxtt.sql.ay.a(Unknown Source)
at Source)
at Source)
at com.hxtt.sql.c1.e(Unknown Source)
at Source)
at Source)
at Source)
at com.hxtt.sql.dl.execute(Unknown Source)

not sure if this helps, but I also noticed that the query did work when rewriting it to:

SELECT * FROM table t1 WHERE NVL(t1."foo", '') IN (SELECT t2."bar" FROM table t2)
HXTT Support
2010-12-23 06:33:25.0
Supported now. That's an issue about index quicken for IN clause. The latest package will be available after about 1 hour.

Search Key   Search by Last 50 Questions


Copyright © 2003-2019 Heng Xing Tian Tai Lab of Xi'an City. | All Rights Reserved. | Privacy | Legal | Sitemap