Problems with TOracledataset and Dbgrid and Blob-Fields

M_K;uhn

Member²
I have problems with using a Toracledataset a TDBgrid and Blob-Fields in the SQL-statement.

Refreshing the dataset or scrolling the DBgrid causes an accessviolation.

I'm using Delphi 2010 and Oracle 11.

Under Delphi 2006 and DOA 4.1.1.0 it all works fine.

What do i wrong.
 
the refresh works fine.

But now. If I open a dataset and call edit,i get the message "Record has been changed by another user".

In the Demo-Project i sent to you , add a rowid in the sql of "Set1" and try editing in the grid. It is not possible.

 
I tested this, and it seems to work fine. Can you double-check this with the demo project and the table data you sent us?
 
Last edited:
i tested it again.
the error occurs if a blob field is not empty.

when i edit a line which contains an emtpy blob field all works fine.
But if there is data in the blob column, i always get an "changed by another user ... "-error.

i've tested it in a 2.project too. With only a grid,a dbnavigator ,an oraclesession and an oracledataset. I've created a table with 3 columns
2 varchar2 fields an a blob field. It has the same behavior.
If the blob field is filled i can't edit any field in the line.

furthermore i've seen ,that you can write data in the blob column (if empty) by writing in a blob-dbgrid-cell. you can see before "(HugeBlob)" and after "(HUGEBLOB)". Is this an error or a feature.
Because the user can't read his changing.

 
i tested it again.
the error occurs if a blob field is not empty.
I can't reproduce this, but we'll investigate further.

furthermore i've seen ,that you can write data in the blob column (if empty) by writing in a blob-dbgrid-cell. you can see before "(HugeBlob)" and after "(HUGEBLOB)". Is this an error or a feature.
This is a Delphi TDBGrid feature. Null fields are displayed as and non-null fields are displayed as .
 
I tested again on 2 Databases in several schemes,it's allways the same.
if the blob column owns data i cant edit any field in the row of the TDBgrid.
The rows with empty blobs make no problems.

I try testing on a clean system.
 
I have the same problem,Record has been changed by another user
my projects are unfinished, and am having problems, time is money.... Please !!!!

 
Back
Top