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)
Column Type/Length autodetection
Edwin S. Ramirez
2007-10-22 07:09:00
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
I meant "numeric(3,2)"

-esr-
Re:Re:Column Type/Length autodetection
HXTT Support
2007-10-23 05:36:22
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
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
>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
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
>>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
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
 

Email: webmaster@hxtt.com
Copyright © 2003-2019 Heng Xing Tian Tai Lab of Xi'an City. | All Rights Reserved. | Privacy | Legal | Refund | Sitemap