Print Thread
TOracleObject and mixed case attribute names
#1018 10/04/00 04:48 AM
Joined: Aug 2000
Posts: 21
Melbourne,VIC,Australia
S
Sonique Offline OP
Member
OP Offline
Member
S
Joined: Aug 2000
Posts: 21
Melbourne,VIC,Australia
I've just discovered that TOracleObject chokes on mixed case attribute names. The problem is that when you call GetAttr, the interbal call to FindAttr fails, so GetAttr thinks that it needs to call FindMeth, which in turn raises an exception 'Unknown method:'. This is the culprit line/s:

UName := AnsiUpperCase(AttrName);

(fine if it's not mixed case of course)

To demonstrate, execute the following:

create type a_t as object("aA" integer);
create table a (a a_t);
insert into a values(a_t(1));
commit;

Next, execute 'select a from a', then Query.ObjField('a').GetAttr('aA') ....

Re: TOracleObject and mixed case attribute names
#1019 10/05/00 06:39 PM
Joined: Aug 1999
Posts: 22,220
Member
Offline
Member
Joined: Aug 1999
Posts: 22,220
We will look into this.

------------------
Marco Kalter
Allround Automations


Marco Kalter
Allround Automations

Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.034s Queries: 13 (0.011s) Memory: 2.4996 MB (Peak: 3.0428 MB) Data Comp: Off Server Time: 2024-05-17 09:46:12 UTC
Valid HTML 5 and Valid CSS