Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access 6.0.061
  HXTT Cobol 3.0.061
  HXTT DBF 6.0.064
  HXTT Excel 5.0.064
  HXTT Paradox 6.0.061
  HXTT Text(CSV) 6.0.062
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT XML 2.0.061
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 Beijing 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.0
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.0
>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.0
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.0
Specification-Version: 6.0.048 on July 27, 2018

Search Key   Search by Last 50 Questions




Google
 

Email: webmaster@hxtt.com
Copyright © 1999-2017 Heng Xing Tian Tai Lab of Beijing City. | All Rights Reserved. | Privacy | Legal | Sitemap