Print Thread
Unexpected datatype (DOA 3.4.4)
#2371 08/21/01 04:58 PM
Joined: Oct 2000
Posts: 13
Regensburg, Germany
S
Member
OP Offline
Member
S
Joined: Oct 2000
Posts: 13
Regensburg, Germany
Lately I created an Oracle 8.04 CLOB field and a TOracleDataSet which accessed the corresponding table.

I also created a persistent datafield which shows its type as TMemoField and its property BlobType as ftOraClob.

On command OracleDataSet1.Open an AV occurred: "Unexpected datatype.". I changed property BlobType to ftMemo but the same result.

I never had this problem before and now don't know what to do. Any advice would be helpful.

Thanks in advance.

Re: Unexpected datatype (DOA 3.4.4)
#2372 08/23/01 03:38 PM
Joined: Aug 1999
Posts: 22,217
Member
Offline
Member
Joined: Aug 1999
Posts: 22,217
TMemoField and ftOraClob are correct for a CLOB field. Can you activate the dataset at design time?

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


Marco Kalter
Allround Automations
Re: Unexpected datatype (DOA 3.4.4)
#2373 08/23/01 06:54 PM
Joined: Oct 2000
Posts: 13
Regensburg, Germany
S
Member
OP Offline
Member
S
Joined: Oct 2000
Posts: 13
Regensburg, Germany
It's a little bit strange. A long as the CLOB field is empty, connection and read/write is possible and even writing the first input to the CLOB works fine.

But on the next table activation the AV occurs. This happens in my EXE and at design time.

If I clear the field again with SQLPlus then the AV doesn't appear any more.

By the way. Perhaps it may be a problem of different Oracle client and server versions as described in another of my requests (TNSNAMES.ORA)?!

Re: Unexpected datatype (DOA 3.4.4)
#2374 08/24/01 04:15 PM
Joined: Aug 1999
Posts: 22,217
Member
Offline
Member
Joined: Aug 1999
Posts: 22,217
When you say AV, do you really mean an Access Violation? I assumed that you got an "Unexpected datatype" exception.

If it is an Access Violation, what is the module and address?

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


Marco Kalter
Allround Automations
Re: Unexpected datatype (DOA 3.4.4)
#2375 08/24/01 04:31 PM
Joined: Oct 2000
Posts: 13
Regensburg, Germany
S
Member
OP Offline
Member
S
Joined: Oct 2000
Posts: 13
Regensburg, Germany
I apologize for the wrong abbreviation. It is in fact an "unexpected datatype" exception, no AV.

Re: Unexpected datatype (DOA 3.4.4)
#2376 08/30/01 04:04 PM
Joined: Aug 1999
Posts: 22,217
Member
Offline
Member
Joined: Aug 1999
Posts: 22,217
I'm afraid you need to do some more debugging, because I can't think of an obvious explanation for this problem. When exactly does the exception occur?

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


Marco Kalter
Allround Automations
Re: Unexpected datatype (DOA 3.4.4)
#2377 08/30/01 04:13 PM
Joined: Oct 2000
Posts: 13
Regensburg, Germany
S
Member
OP Offline
Member
S
Joined: Oct 2000
Posts: 13
Regensburg, Germany
Indeed I did some more research and the conclusion is that in fact it seems to be an Oracle version problem.

After I connect from the 8.17 client to the 8.17 server the exception does not occur any more. I can edit and save the CLOB field.

If I connect to the 8.04 server again the exception occurs again.


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.021s Queries: 13 (0.006s) Memory: 2.5226 MB (Peak: 3.0418 MB) Data Comp: Off Server Time: 2024-05-13 22:43:40 UTC
Valid HTML 5 and Valid CSS