[
https://issues.apache.org/jira/browse/DERBY-2259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12468982
]
Knut Anders Hatlen commented on DERBY-2259:
-------------------------------------------
LONG VARCHAR and CLOB support WHERE...LIKE, so they should return typePredChar.
ij version 10.2
ij> connect 'jdbc:derby:db';
ij> create table t (x long varchar);
0 rows inserted/updated/deleted
ij> insert into t values 'abc';
1 row inserted/updated/deleted
ij> select * from t where x like 'a%';
X
--------------------------------------------------------------------------------------------------------------------------------
abc
1 row selected
ij> create table t2 (c clob);
0 rows inserted/updated/deleted
ij> insert into t2 values cast('abc' as clob);
1 row inserted/updated/deleted
ij> select * from t2 where c like 'a%';
C
--------------------------------------------------------------------------------------------------------------------------------
abc
1 row selected
> DatabaseMetaData.getTypeInfo() SEARCHABLE column returns incorrect
> information for types that cannot be searched.
> -----------------------------------------------------------------------------------------------------------------
>
> Key: DERBY-2259
> URL: https://issues.apache.org/jira/browse/DERBY-2259
> Project: Derby
> Issue Type: Bug
> Affects Versions: 10.0.2.1, 10.1.1.0, 10.1.2.1, 10.1.3.1, 10.2.1.6,
> 10.2.2.0, 10.3.0.0
> Reporter: Daniel John Debrunner
> Assigned To: Saurabh Vyas
> Priority: Minor
>
> These types cannot be searched (I think) and should have the value
> DatabaseMetaData.typePredNone
> Types.LONGVARBINARY returns DatabaseMetaData.typePredBasic
> Types.LONGVARCHAR returns DatabaseMetaData.typeSearchable
> Types.BLOB returns DatabaseMetaData.typePredChar;
> Types.CLOB returns DatabaseMetaData.typePredChar;
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.