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)
Column Type/Length autodetection
Edwin S. Ramirez
2007-10-22 07:09:00.0
Hello,

I understand that the driver will need to generate "longvarchar" or "double" when the file may be modified. However, is it possible to return the smaller possible type (varchar(100), number(3,2)) when the driver is in readOnlyMode?

-Edwin S. Ramirez-
Correction
Edwin S. Ramirez
2007-10-22 07:10:30.0
I meant "numeric(3,2)"

-esr-
Re:Re:Column Type/Length autodetection
HXTT Support
2007-10-23 05:36:22.0
Now ResultSetMetaData.getColumnDisplaySize will calculate then show the max size for longvarchar(varchar).

>is it possible to return the smaller possible type (varchar(100), number(3,2))
> when the driver is in readOnlyMode?
According to your requirement, we will add those information when maxScanRows=0 in the next version.
Re:Re:Re:Column Type/Length autodetection
Edwin S. Ramirez
2007-10-23 07:00:51.0
Thanks, I'll try it. Will this also work for other types, such as "double"?

-Edwin S. Ramirez-
Re:Re:Re:Re:Column Type/Length autodetection
HXTT Support
2007-10-23 07:14:19.0
>Will this also work for other type
Yeah. It works for all data types.

>>is it possible to return the smaller possible type (varchar(100), number(3,2))
BTW, why you need that feature?
Re:Re:Re:Re:Re:Column Type/Length autodetection
Edwin S. Ramriez
2007-10-23 07:19:34.0
Thanks for your reply.

I purchased the HXTT Text to primarily load text files into other databases (Oracle, Postgres, etc). These databases may not support (or the type is not desirable) all the data types supported by HXTT Text (double for example).

Let me know if you have any other questions.

-Edwin S. Ramirez-
Re:Re:Re:Re:Re:Re:Column Type/Length autodetection
HXTT Support
2007-10-23 07:33:28.0
>>According to your requirement, we will add those information when maxScanRows=0
>> in the next version.
>hese databases may not support (or the type is not desirable) all the data types
>supported by HXTT Text (double for example).
I see. We will support it ASAP.
Re:Re:Re:Re:Re:Re:Re:Column Type/Length autodetection
HXTT Support
2007-10-25 08:17:37.0
For data export purpose, v3.1.085's will detect numeric(precision, scale) type and varchar(maxDataLength) type when maxScanRows=0 and readOnlyMode=true. ResultSetMetaData.getColumnDisplaySize() can still be used to know the max data length for all data types.

Altough we have complemented that feature, we will release that package next week, because we're planning to provide session.variable support in the same version too.

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