Print Thread
Using quoted fieldnames
#2317 08/02/01 04:49 PM
Joined: Aug 2001
Posts: 18
Dumfries, Dumfriesshire, UK
C
cjmoore Offline OP
Member
OP Offline
Member
C
Joined: Aug 2001
Posts: 18
Dumfries, Dumfriesshire, UK
In a TOracleDataset is there a way to get it to use quoted fieldnames in the SQL it generates on a post (insert or update)?

The problem I have is one of the field names in a table is mixedcase (the rest are uppercase) and I get an invalid fieldname error when an update is posted.

TIA
Cary.

[This message has been edited by cjmoore (edited 02 August 2001).]

Re: Using quoted fieldnames
#2318 08/03/01 05:35 PM
Joined: Aug 1999
Posts: 22,218
Member
Offline
Member
Joined: Aug 1999
Posts: 22,218
The TOracleDataSet does currently not support mixed case column names, unless you handle all DML yourself in the OnApplyRecord event handler. This may be a lot of work though, if all your tables have mixed case column names.

You could alternatively rename the columns, or use a view to change the column names.

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


Marco Kalter
Allround Automations
Re: Using quoted fieldnames
#2319 08/03/01 06:42 PM
Joined: Aug 2001
Posts: 18
Dumfries, Dumfriesshire, UK
C
cjmoore Offline OP
Member
OP Offline
Member
C
Joined: Aug 2001
Posts: 18
Dumfries, Dumfriesshire, UK
I thought that might be the answer, the short-term fix I've removed the field from the Oracledataset's that update it and have added code to apply updates manually.

In the longer term I'll rename the column when there's a major release to be packaged.

Thanks,
Cary.


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.031s Queries: 12 (0.008s) Memory: 2.5069 MB (Peak: 3.0459 MB) Data Comp: Off Server Time: 2024-05-15 06:37:47 UTC
Valid HTML 5 and Valid CSS