-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Wrong size of a column returned by Oracle-JDBC-Driver
PostPosted: Mon Jul 11, 2005 6:50 am 
Newbie

Joined: Mon Jul 11, 2005 6:38 am
Posts: 1
Hello,

there seems to be a bug with Oracle-JDBC-Driver. We are using an UTF8-Database with NLS_LENGTH_SEMANTICS set to CHAR.

Since DATABASEMETADATA.GETCOLUMNS() returns for COLUMNS_SIZE ..

DECODE (t.data_precision, null, t.data_length, t.data_precision)
AS column_size

We alwasy get the size of the column in byte. And that is 3times bigger than the size in character. So for a table TEST with one column TESTCHAR declared as CHAR (1 CHAR), the size returned by getColumns is 3 instead of expected 1.

Does anyone know of that problem and has a workaround for that?

We have opened a bug at the oracleside. But since it is a big company, we expect the problem not to be solved very quickly.

Thanks in advance
Christian


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.