Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v7.1
  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
 
  Buy Now
  Support
  Download
  Document
  FAQ
  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 Text(CSV)
Issue with CDtae() function in Text JDBC 3.0 Package V5.2
Prasad
2018-07-24 03:15:47
We are getting different results with using CDate function in sql using text drivers.

With Text JDBC V5.1, get results correctly but Text JDBC V5.2 and V6.0, cdate function not filtering the records and ended up getting all.

Below is the query we used:
---------------------------
select * from "MY-File" where "Employee Leave Date" is not null and cdate("Employee Leave Date",'dd/mm/yyyy') >= '06-JUL-2017'

If we use DATE() or CONVERT() function it works fine but customers are asking what is the issue with CDate function.

Is there any know issue with CDate on version 5.2 and 6.0.

Kindly help.
Re:Issue with CDtae() function in Text JDBC 3.0 Package V5.2
HXTT Support
2018-07-27 08:46:31
>With Text JDBC V5.1, get results correctly but Text JDBC V5.2 and V6.0, cdate function not filtering the records and ended up getting all.
Because the automatical conversion for '06-JUL-2017' has been disabled since v5.2. Please download the latest package, which enables that feature now.


'dd/mm/yyyy' should be 'dd/MMM/yyyy' if your stored date is similar to '06-JUL-2017' . For instance, select * from "MY-File" where "Employee Leave Date" is not null and cdate("Employee Leave Date",'dd/MMM/yyyy') >= '06-JUL-2017'
Re:Re:Issue with CDtae() function in Text JDBC 3.0 Package V5.2
Prasad
2018-07-29 23:51:02
Thanks for your response.

So,is V6.0 package latest version or any other version released top of that. I tried the suggested query on V6.0 and its not working there as well.

However, if i use the below queries I am able to get the results properly.
select count(1) from "PD-WD_HR" where "Employee Leave Date" is not null and DATE("Employee Leave Date") >= DATE( '06-JUL-2017');

OR

select count(1) from "PD-WD_HR" where "Employee Leave Date" is not null and cdate("Employee Leave Date",'dd/MM/yyyy') >= DATE( '06-JUL-2017');

Thanks
Prasad
Re:Re:Re:Issue with CDtae() function in Text JDBC 3.0 Package V5.2
HXTT Support
2018-07-30 04:58:46
Specification-Version: 6.0.048 on July 27, 2018

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