Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access 7.1.202
  Buy Now
  HXTT Cobol 5.0.202
  HXTT DBF 7.1.203
  HXTT Excel 6.1.206
  HXTT Json 1.0.174
  HXTT Paradox 7.1.202
  HXTT PDF 2.0.202
  HXTT Text(CSV) 7.1.202
  HXTT Word 1.1.202
  HXTT XML 4.0.203
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 - Prepared Statements and wildcards
Benjamin Böttcher
2016-02-24 02:18:06.0
I'm evaluating JDBC 3.0 trial version of the HXTT Access driver. When I execute following querys on an empty table "BasisTyp" it works as expected:

insert into BasisTyp (idBasisTyp, name) values (5, 'ABCD');
delete from BasisTyp where name like '%ABCD';
select name from BasisTyp;
-> No Result.

But when I use a prepared statement for deleting the inserted row, the row still exists.

PreparedStatement prepStmt = con.prepareStatement("delete from BasisTyp where name like ?");
prepStmt.setString(1, "%ABCD");

Prepared statements are working if the % is not at the beginning of the string. Is there a hint? Or is this fixed in a full version?

Thanks for help.
Re:HXTT Access - Prepared Statements and wildcards
HXTT Support
2016-02-24 05:56:13.0
Checked. It happened only when name is an indexed column, and like pattern begin with % .

Fixed. Please download the latest package.

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