Thanks for reporting the problem! Unfortunately, I can't reproduce the
problem so far, I use
Oracle Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
H2 1.3.149 (2011-01-07)
Regards,
Thomas
I still can't reproduce it even with a newer version of the Oracle
JDBC driver. I didn't upgrade Oracle yet (I use Oracle 10g). My test
case:
create linked table test(null,
'jdbc:oracle:thin:@192.168.0.135:1521:XE', 'sa', 'sa', 'A');
drop table test2;
create table test2 as select * from test;
@list @meta select * from test;
Column Data
Row # 1
# 1
label X
catalog DB4
schema PUBLIC
table TEST
column X
type 3
typeName DECIMAL
class java.math.BigDecimal
precision 22
scale 0
displaySize 22
autoIncrement false
caseSensitive true
currency false
nullable 1
readOnly false
searchable true
signed true
writable true
definitelyWritable false
@list @meta select * from test2;
Column Data
Row # 1
# 1
label X
catalog DB4
schema PUBLIC
table TEST2
column X
type 3
typeName DECIMAL
class java.math.BigDecimal
precision 22
scale 0
displaySize 22
autoIncrement false
caseSensitive true
currency false
nullable 1
readOnly false
searchable true
signed true
writable true
definitelyWritable false
Could you run the "@list @meta select * from ..." on your database in
the H2 Console and post the meta data for your tables? Unfortunately,
only the trunk of H2 supports listing the metadata in this form, so
the output will be different, but that shouldn't be a problem. Just
copy & paste the result.
Regards,
Thomas
Could you also get the meta data of the original table (connecting the
H2 Console to Oracle directly)? I get:
@list @meta select * from a;
Column Data
Row # 1
# 1
label X
catalog
schema
table
column X
type 2
typeName NUMBER
class java.math.BigDecimal
precision 0
scale -127
displaySize 22
autoIncrement false
caseSensitive false
currency true
nullable 1
readOnly false
searchable true
signed true
writable true
definitelyWritable false
Regards,
Thomas
| catalog | TEST |
| schema | PUBLIC |
| table | B |
| column | X |
| type | 3 |
| typeName | DECIMAL |
| class | java.math.BigDecimal |
| precision | 0 |
| scale | -127 |
| displaySize | 22 |
| autoIncrement | false |
| caseSensitive | true |
| currency | false |
| nullable | 1 |
| readOnly | false |
| searchable | true |
| signed | true |
| writable | true |
| definitelyWritable | false |
Regards,
Thomas
--
You received this message because you are subscribed to the Google Groups "H2 Database" group.
To post to this group, send email to h2-da...@googlegroups.com.
To unsubscribe from this group, send email to h2-database...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/h2-database?hl=en.
| catalog | TEST |
| schema | PUBLIC |
| table | A |
| column | X |
| type | 3 |
| typeName | DECIMAL |
| class | java.math.BigDecimal |
| precision | 0 |
| scale | -127 |
| displaySize | 22 |
| autoIncrement | false |
| caseSensitive | true |
| currency | false |
| nullable | 1 |
| readOnly | false |
| searchable | true |
| signed | true |
| writable | true |
| definitelyWritable | false |
Regards,
Thomas
Regards,
Thomas
I guess the problem could occur for both DECIMAL and NUMERIC, so I leave both.
Thanks for your help!
Regards,
Thomas