Article View: borland.public.cppbuilder.database.ado
Article #4736Reading back Field Names that use MDSYS.SDO_GEOMETRY data type
From: Graham Reeds
Date: Tue, 09 Oct 2001 12:55
Date: Tue, 09 Oct 2001 12:55
30 lines
2008 bytes
2008 bytes
Hello. I have a problem retrieving the fieldnames of a table from Oracle8i Spatial 8.1.6 using Borland Builder 5. The following code reads in 'normal' tables perfectly, but fails when the table uses the MDSYS.SDO_GEOMETRY data type. The error isn't Oracle specific, more Borland related, but I was wondering if anyone had any ideas on why or similar problems? The Find feature on DEJA doesn't return any other similar problems, so I was wondering if anyone could give me a helping hand. The error message is 'ROW-00004: Invalid column datatype.' Stepping through with the debugger shows that the FieldCount isn't filled in and so fails immeadiately. The erroneous(?) piece of code: ... ADOTable->Active = false; // turn table off ADOTable->TableName = TableName; // retrieved previously ADOTable->Active = true; // turn it back on for (int i=0; i<ADOTable->FieldCount; i++) // fill the ListBox CheckListBoxTFields->Items->Add(ADOTable->Fields->Fields[i]->FieldName); Thanks. - Yours faithfully, Graham Reeds. grahamr@omnieng.co.uk | http://omnieng.co.uk/
Technical Details
Message-ID:
<3bc2f3f4_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!newsfeed.mesh.ad.jp!uunet!osa.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,96caeb4bff8ec055,start X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2001-10-09 06:07:30 PST From: "Graham Reeds" <grahamr@omnieng.co.uk> Newsgroups: borland.public.cppbuilder.database.ado Subject: Reading back Field Names that use MDSYS.SDO_GEOMETRY data type Date: Tue, 9 Oct 2001 13:55:56 +0100 Lines: 32 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 NNTP-Posting-Host: 212.172.148.2 Message-ID: <3bc2f3f4_1@dnews> X-Trace: dnews 1002632180 212.172.148.2 (9 Oct 2001 05:56:20 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!newsfeed.mesh.ad.jp!uunet!osa.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews