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)
Insertion of binary values results in null inserted values
Rodolfo Martin
2005-03-21 00:00:00
Hi,
I create a sql file with the following create table command:
(create table if not exists Table (FLAGS BINARY(2) NOT NULL,...).
I use it as schema file, create a dataSource and a spring's JdbcTemplate with it, that I use to insert and select information from the table.
Everything was working OK, except this:

When inserting a byte[] with any value != 00 the insert is ok, but if the byte [] contains 00 the value inserted is null. The NOT NULL constraint seems to have no effect.

Worse: retrieving such data returns null instead the expected byte[].

Is this the expected behaviour? I noticed that querying through Admin server the column shows object references.
Thanks in advance.

Rodolfo Martin
Re:Insertion of binary values results in null inserted values
HXTT Support
2005-03-22 00:00:00
Dear Rodolfo Martin,

Yeah. HXTT Text will take a value stuffed with '\0' as null value for binary type and varbinary type. NULL/NOT NULL constraint is ignored by HXTT Text now. A value stuffed with space characters is null value for char type and varchar type too.

With best regards,

Dai Wei
Re:Re:Insertion of binary values results in null inserted values
HXTT Support
2005-03-26 00:00:00
The latest package won't rtrim value or return null value for char type and binary type now.

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