Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v7.1
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Cobol v5.0
  HXTT DBF v7.1
  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)

HXTT ACCESS
SELECT FOO, BAR, NULL AS BAZ FROM DATETEST
Andrea Spinelli
2005-08-22 00:00:00
Hello,

I am trying your [very interesting] product and I think I have found a bug.

I have a table with columns FOO and BAR and I need to simulate a third column, BAZ, always having value NULL.

I issue the statement

PreparedStatement ps = c.prepareStatement("select foo, bar, NULL as baz from datetest");

I obtain the error

java.sql.SQLException: Can't parse select foo, bar, NULL as baz from datetest
!
at com.hxtt.global.SQLState.SQLException(Unknown Source)
at com.hxtt.sql.b0.a(Unknown Source)
at com.hxtt.sql.b0.(Unknown Source)
at com.hxtt.sql.y.do(Unknown Source)
at com.hxtt.sql.ch.(Unknown Source)
at com.hxtt.sql.a3.prepareStatement(Unknown Source)
at com.hxtt.sql.a3.prepareStatement(Unknown Source)
at com.hxtt.sql.a3.prepareStatement(Unknown Source)
at Prova.main(Prova.java:36)
Exception in thread "main"

I think this is actually a bug, since in several other drivers and databases this is recognised as valid SQL.

Please note that
SELECT FOO, BAR, 1 AS BAZ FROM DATETEST
is working perfectly, as well as
SELECT FOO, BAR, '' AS BAZ FROM DATETEST

I deduce that the general mechanism for constant-valued columns is working correctly, and there is a tiny problem connected to the specific constant NULL.

My compliments for the product!

Andrea Spinelli
Re:SELECT FOO, BAR, NULL AS BAZ FROM DATETEST
HXTT Support
2005-08-22 00:00:00
Supported. Please download the latest package. Thanks for your response.

Search Key   Search by Last 50 Questions




Google
 

Email: webmaster@hxtt.com
Copyright © 2003-2019 Heng Xing Tian Tai Lab of Xi'an City. | All Rights Reserved. | Privacy | Legal | Refund | Sitemap