Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Oracle tables and ODBC field sizes..

Oracle tables and ODBC field sizes..

From: TimMcConechy <tjm_at_runtime.dk>
Date: 5 Sep 2003 01:45:27 -0700
Message-ID: <7afae186.0309050045.10a73d09@posting.google.com>


I have noticed something odd..

When I create a table on Oracle for example: create table testx (x number(2,1),y number(1),xx number(19),z number(20))

If I got into my application using ODBC and open the table with:

SQLEXEC(h,'select * from testx')

Then look at the fields sizes as shown by the application I notice the sizes are funny..

x->N(4,1)
y->N(3)
xx->N(20)
z->N(20)

Has anybody seen this? Of course I can code around this in the application
but I'm afraid what will happen if someone every fixes this bug and would like to know the reason that the system thinks the field is 2 bytes bigger.

This happens with both the micorsoft odbc for oracle driver and the oracle odbc driver.

BR
Tim Received on Fri Sep 05 2003 - 03:45:27 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US