Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v7.1
  HXTT Cobol v5.0
  HXTT DBF v7.1
  Buy Now
  HXTT Excel v6.1
  HXTT Json v1.0
  HXTT Paradox v7.1
  HXTT PDF v2.0
  HXTT Text(CSV) v7.1
  HXTT Word v1.1
  HXTT XML v4.0
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