Bug when working with reserved column names
Posted: Fri 08 Aug 2008 14:44
Hi!
There seems to be a problem with the driver when using TClientDataSet and reserved names.
Example:
1. Create table:
CREATE TABLE TESTX (
ID NUMBER(10, 0),
"COMMENT" VARCHAR2(10)
)
2. Connect and configure TSQLConnection, TSQLQuery, TDataSetProvider and TClientDataSet.
3. Set SQLQuery.SQL.Text to
Select * from TESTX
4. Execute this Delphi lines:
cds.Open;
cds.Append;
cds.FieldByName('id').AsInteger:=1;
cds.FieldByName('comment').AsString:='test';
cds.Post;
cds.ApplyUpdates;
ApplyUpdates raises exception:
Project Project17.exe raised exception class EOraError with message 'ORA-01747: invalid user.table.column, table.column, or column specification
Setting poUseQuoteChar on provider or setting UseQuoteChar=TRUE on SQLConnection does not help.
I hope you can confirm this behaviour.
Looking forward to a fixed dll or a workaround,
Mitja Perko
There seems to be a problem with the driver when using TClientDataSet and reserved names.
Example:
1. Create table:
CREATE TABLE TESTX (
ID NUMBER(10, 0),
"COMMENT" VARCHAR2(10)
)
2. Connect and configure TSQLConnection, TSQLQuery, TDataSetProvider and TClientDataSet.
3. Set SQLQuery.SQL.Text to
Select * from TESTX
4. Execute this Delphi lines:
cds.Open;
cds.Append;
cds.FieldByName('id').AsInteger:=1;
cds.FieldByName('comment').AsString:='test';
cds.Post;
cds.ApplyUpdates;
ApplyUpdates raises exception:
Project Project17.exe raised exception class EOraError with message 'ORA-01747: invalid user.table.column, table.column, or column specification
Setting poUseQuoteChar on provider or setting UseQuoteChar=TRUE on SQLConnection does not help.
I hope you can confirm this behaviour.
Looking forward to a fixed dll or a workaround,
Mitja Perko