I am using Borland's Delphi working with a simple database structure.
Basic structure is
1. Name table, including a MasterID, which increments with each entry.
2. Session table, with session number, Session ID which increments with each entry, and a MasterID field that links to MasterID in Name
3. Image table, with image number, Image ID which increments, and a Session ID field that links to Session ID in Session table.
The program works for a stand-alone system, which adds images, per session, for each person.
SQL queries are used to store data.
Basically, without being set up as Server-Client, we have multiple systems taking images. With the same name, there would be duplications of session numbers and image numbers.
So in the program, I check for duplication, change the session number, using the next available number. Master ID and Session ID are also changed. The first entry is stored, but when I try to open the Name table again, I keep getting the error message:
General SQL Error, Multiple rows with singleton select.
The message is clear, the original session number is a duplicate. But the number is changed before adding to the database.
If I hardcode the duplicate session number to a different number, the program works just fine.
I had checked very carefully for mistakes and found none.
Any clues or suggestions?
Basic structure is
1. Name table, including a MasterID, which increments with each entry.
2. Session table, with session number, Session ID which increments with each entry, and a MasterID field that links to MasterID in Name
3. Image table, with image number, Image ID which increments, and a Session ID field that links to Session ID in Session table.
The program works for a stand-alone system, which adds images, per session, for each person.
SQL queries are used to store data.
Basically, without being set up as Server-Client, we have multiple systems taking images. With the same name, there would be duplications of session numbers and image numbers.
So in the program, I check for duplication, change the session number, using the next available number. Master ID and Session ID are also changed. The first entry is stored, but when I try to open the Name table again, I keep getting the error message:
General SQL Error, Multiple rows with singleton select.
The message is clear, the original session number is a duplicate. But the number is changed before adding to the database.
If I hardcode the duplicate session number to a different number, the program works just fine.
I had checked very carefully for mistakes and found none.
Any clues or suggestions?