Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v5.2
  HXTT Cobol v2.1
  HXTT DBF v5.2
  HXTT Excel v4.2
  HXTT Paradox v5.2
  HXTT Text(CSV) v5.2
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT XML v1.2
Offshore Outsourcing
Oracle Data Import/Export
DB2 Data Import/Export
Sybase Data Import/Export
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
   
   
   
Hongxin Technology & Trade Ltd. of Xiangtan City (abbr, HXTT)

HXTT Text(CSV)
Wrong data type
khaldoun Ateyeh
2006-08-03 01:17:09.0
The hxtttext driver data type detection creates wrong data types.
(see example below) the driver considers the column: cause_value as DOUBLE and cause_location ans Time bot are of ty Integer.
Regards
K. Atyeh
-----------------------------
vnk_id|vk|ubn|uon|zrn|zbn|begdat_uhr|dvm|gd|ei|tmr|dienst_typ|cause_value|cause_location|ukk_ind|ukk_1|ukk_2

vnk11|40|B105E5|410aaa|004218231aaaffffffff|B104E |2005-01-31 00:23:17|1|0|0|3|00|03|02|10000100|92|02
vnk11|40|B039E |4367aa|00905375048aaaffffff|O525E |2005-01-31 00:23:17|1|0|0|0|00|11|04|10000100|a3|02
vnk11|40|I630E |486944|0180aaaaaaafffffffff|B514F |2005-01-31 00:23:06|22|12|1|0|00|10|00|10000100|a7|04
Re:Wrong data type
HXTT Support
2006-08-06 20:58:36.0
I created a texttype.txt file according to your three rows sample, and use the following url:
jdbc:text:////f:/textfiles?_CSV_Separator=|;_CSV_Header=true;csvfileExtension=TXT

but got the correct type:

select * from testtype

vnk_id LONGVARCHAR
vk INTEGER
ubn LONGVARCHAR
uon LONGVARCHAR
zrn LONGVARCHAR
zbn LONGVARCHAR
begdat_uhr TIMESTAMP
dvm INTEGER
gd INTEGER
ei INTEGER
tmr INTEGER
dienst_typ INTEGER
cause_value INTEGER
cause_location INTEGER
ukk_ind INTEGER
ukk_1 LONGVARCHAR
ukk_2 INTEGER
vnk11 13360 B105E5 410aaa 004218231aaaffffffff B104E 2005-01-31 00:23:17.0 49 48 48 51 12336 12339 12338 808529968 92 12338
vnk11 13360 B039E 4367aa 00905375048aaaffffff O525E 2005-01-31 00:23:17.0 49 48 48 48 12336 12593 12340 808529968 a3 12338
vnk11 13360 I630E 486944 0180aaaaaaafffffffff B514F 2005-01-31 00:23:06.0 12850 12594 49 48 12336 12592 12336 808529968 a7 12340
The total row number of resultset: 3



Re:Re:Wrong data type
khaldoun Ateyeh
2006-08-07 01:56:57.0
Hi,

I think the driver considers the column cause_location as Time because its values always begin with 0. Is this correct?
regards.
K. Ateyeh
Re:Re:Re:Wrong data type
HXTT Support
2006-08-07 09:54:05.0
You're correct. v3.0.001 fixed a bug in parsing int column since v2.3.038. Thanks. Please download the latest package.
The correct result should be:
2 vnk11 40 B105E5 410aaa 004218231aaaffffffff B104E 2005-01-31 00:23:17.0 1 0 0 3 0 3 2 10000100 92 2
4 vnk11 40 B039E 4367aa 00905375048aaaffffff O525E 2005-01-31 00:23:17.0 1 0 0 0 0 11 4 10000100 a3 2
0 vnk11 40 I630E 486944 0180aaaaaaafffffffff B514F 2005-01-31 00:23:06.0 22 12 1 0 0 10 0 10000100 a7 4
The total row number of resultset: 3

Re:Re:Re:Re:Wrong data type
khaldoun Ateyeh
2006-08-08 00:45:47.0
Hi,
the name of the package has changed! You gave it the name "Text JDBC 2.0 package". Is this a mistake??

Regards.
K. Ateyeh
Re:Re:Re:Re:Re:Wrong data type
HXTT Support
2006-08-08 01:57:53.0
JDBC 3.0(2.0, or 1.2) package means JDBC 3.0(2.0, or 1.2) specification. v3.0 means the version of HXTT Text (CSV).

Search Key   Search by Last 50 Questions




Google
 

Address: 9 Station Rd., Xiangtan City, Hunan Province, P.R. China
Postcode: 411100
Phone: (86)731-58225727
Fax: (86)731-58225727
Email: webmaster@hxtt.com
Copyright © 1999-2011 Hongxin Technology & Trade Ltd. | All Rights Reserved. | Privacy | Legal | Sitemap