Subject | Re: [Firebird-Java] Column Type : BLOB |
---|---|
Author | Luca Lafranchi |
Post date | 2004-06-30T14:52:02Z |
On the other hand, how could (columnType==columnType.BLOB) possibly
compile? columnType is an int... Was it (columnType==java.sql.Types.BLOB)?
compile? columnType is an int... Was it (columnType==java.sql.Types.BLOB)?
> I have this problem in geTcolumType :
>
>
> // fact :fieldIndex refers to a BLOB COLUMN
> ResultSetMetaData rsmd = rs.getMetaData();
> int columnType = rsmd.getColumnType(fieldIndex);
> String columnTypeName = rsmd.getColumnTypeName(fieldIndex);
> System.out.println(""+(columnTypeName.toUpperCase().indexOf
> ("BLOB")>=0); // prints true, which is correct since the column is a
> blob
> System.out.println(""+(columnType==columnType.BLOB)); //
> prints FALSE !!!
>
>
> This way, I cant detect the column is a blob.. Is there any
> trick I am missing ?
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>