Thread View: borland.public.cppbuilder.database.multi-tier
1 messages
1 total messages
Started by Dayle Smith
Thu, 06 Jan 2000 00:00
Oracle 8 - BCB3.0 - Nulls - Key Violation
Author: Dayle Smith
Date: Thu, 06 Jan 2000 00:00
Date: Thu, 06 Jan 2000 00:00
22 lines
1718 bytes
1718 bytes
Hello. I have had many problems with Cbuilder 3 running against Oracle 8.0 and it seems to center around NULL fields. Symptom 1. I will run a query and the records will display, but I will notice a few fields (I'm using DBText controls) are blank. If I try to make changes and save a record, I get "cannot perform edit because another user has changed the record", even though no one else is even logged in!!! If I go through the record (using Oracle's SQL tool), and make sure no fields are NULL, then the query and the update works fine. What gives? The fields do not have non-NULL constraints. Note: some of the fields that are not displayed are NOT null to begin with. Symptom 2. I run a query and I get the error "Key violation: invalid data type". I cannot find anything to pinpoint this error. I have tried query ranges that overlap, I have tried ODBC SQL Trace. But nothing will indicate what field has an invalid data in it, and the query returns nothing. kinda odd behavior, it should return what data it finds and a null or invalid code for what it can't resolve. Any clues as to what I can look for?
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads