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.
|