I do hope I am posting to the right place. The link from Flat-file SQL on sourceforge brought me here.
Also this is about version 1.3.1 and I see mention on this site to a 1.4... I have no idea if or how to make the 1.4 on this site, work... Anyway...
Lets see if I can explain this... If I create a database with three columns ID, fruit, and amount, and I populate it with entries the text get in my database is shown below...
10
0: 1;'Strawberry';22;
1: 2;'Apple';22;
2: 3;'Peach';22;
3: 4;'Plum';42;
4: 5;'Mango';42;
5: 6;'Cherry';22;
6: 7;'Orange';68;
7: 8;'Lemon';62;
8: 9;'Lime';50;
9: 10;'Banana';18;
The database works just fine.
Now lets say I use the delete command to remove Plum, Mango, Orange and Lemon. I am left with what is below and this is where the problem starts.
6
0: 1;'Strawberry';22;
1: 2;'Apple';22;
2: 3;'Peach';22;
5: 6;'Cherry';22;
8: 9;'Lime';50;
9: 10;'Banana';18;
There is two problems that can happen at this point... Well one that can happen and the second that never seems to fail to happen.
Problem 1, the one that always happens) Lets say I get a shipment of Pineapples, Oranges and Watermelons, 100 of each. I want to add them to the database, so I do.
The database ends up looking as follows:
7
0: 1;'Strawberry';22;
1: 2;'Apple';22;
2: 3;'Peach';22;
5: 6;'Cherry';22;
8: 9;'Lime';50;
9: 10;'Banana';18;
10: 7;'Pineapple';100;
Notice the Oranges and Watermelons are not added.
Now, nothing I do will allow me to add any more entries. This seems like a bug. Now I have tried repeating this, without my ID column so the database looks like:
10
0: 'Strawberry';22;
1: 'Apple';22;
2: 'Peach';22;
3: 'Plum';42;
4: 'Mango';42;
5: 'Cherry';22;
6: 'Orange';68;
7: 'Lemon';62;
8: 'Lime';50;
9: 'Banana';18;
But the problem still happens.
The only way I have found to solve the issue is to manually change the leading numbers... So,
6
0: 1;'Strawberry';22;
1: 2;'Apple';22;
2: 3;'Peach';22;
5: 6;'Cherry';22;
8: 9;'Lime';50;
9: 10;'Banana';18;
Becomes...
6
0: 1;'Strawberry';22;
1: 2;'Apple';22;
2: 3;'Peach';22;
3: 6;'Cherry';22;
4: 9;'Lime';50;
5: 10;'Banana';18;
When that is done the database works normally again, but it is not really feasible to manually edit the database each time a row is deleted when the database can have hundreds or more entries... Would you have any idea on how to fix this problem, or is it a intended design?
Oh and the second issue that shows up sometimes is that once a row has been deleted, any row after the one that was removed may or may not be able to be read and may or may not be able to be altered or updated.
Thank you for any assistance you might be able to provide.