Article View: borland.public.cppbuilder.database.ado
Article #3127Why can't float type translate to BCD field?
From: Mountain Lan
Date: Thu, 14 Nov 2002 02:33
Date: Thu, 14 Nov 2002 02:33
26 lines
2409 bytes
2409 bytes
Hi, friends, I am using BCB5, ADO and Oracle 9ir2. When I am using Microsoft ODBC driver for Oracle or Oracle OLEDB driver, float data type (result from SQL expression such as F1 * F2) is translated to TBCDField, but when I am using Oracle ODBC Driver(Shipped by Oracle Company), float data type is translated to TFloatField. Property 'EnableBCD' is set to be True in my program. My program is a multi-tire one, and designed to be run on different DBMSs. When connecting to SQL Server or DB2, BCD field is returned as expected. I define persistent field list on the client side. If the data types of the server and client are not the same, and error will report, such as: Expected BCD, actual float. This problem limits adability of my program. I can define persistant field list on server side too, whose data types match types of client side, but I think this is not a good idea, and I have to modify all of my server program. It's a hard work. Microsoft ODBC driver is not a suitable choice, because it can support some data types of Oracle 8 and Oracle 9. Oracle OLEDB driver can't be adopted too, because it can't return parameter types in SQL statement, so I will have to set the parameter types programmatically. Is it a bug in BCB, or in Oracle ODBC driver? What is the best way to resolve it? Thanks! Mountain
Technical Details
Message-ID:
<3dd30ba1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-04!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!64.154.60.99.MISMATCH!c02.atl3!news.webusenet.com!news02.tsnz.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,f6f331960105a491,start X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2002-11-13 18:46:01 PST Reply-To: "Mountain Lan" <swatow@sina.com> From: "Mountain Lan" <swatow@sina.com> Newsgroups: borland.public.cppbuilder.database.ado Subject: Why can't float type translate to BCD field? Date: Thu, 14 Nov 2002 10:33:30 +0800 Lines: 29 Organization: Ideal Tech X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 61.174.183.210 Message-ID: <3dd30ba1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1037241249 61.174.183.210 (13 Nov 2002 18:34:09 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-04!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!64.154.60.99.MISMATCH!c02.atl3!news.webusenet.com!news02.tsnz.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail