Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v5.2
  HXTT Cobol v2.1
  HXTT DBF v5.2
  Buy Now
  HXTT Excel v4.2
  HXTT Paradox v5.2
  HXTT Text(CSV) v5.2
  HXTT XML v1.2
Offshore Outsourcing
Oracle Data Import/Export
DB2 Data Import/Export
Sybase Data Import/Export
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 Xin Tian Tai Ltd. of Beijing 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 © 1999-2017 Heng Xin Tian Tai Ltd. of Beijing City. | All Rights Reserved. | Privacy | Legal | Sitemap