Weird

Das Goravani goravanis at gmail.com
Thu Jan 21 00:21:41 UTC 2021


OK Never mind everything just started working correctly.. it’s as if the database had a hiccup for a few minutes.. half an hour.. and now it’s over it.. 

This is pretty simple what Im doing,.. hence why it was so baffling… 

> On Jan 20, 2021, at 4:16 PM, Das Goravani <goravanis at gmail.com> wrote:
> 
> 
> Dear $All,
> 
> Greetings.
> 
> I have a weird thing going on and I can’t figure it out.
> 
> I am using Studio 10.2 and SQLite.
> 
> I have code which saves an astrological chart.. and it’s working, through one feature.
> 
> I have another feature that uses the same code, to save the chart.. 
> 
> When I edit through feature 1 and save again, all is fine.
> 
> When I edit through feature 2 and try to save it says Unique Constraint Failed on the RSN or Primary Key field..
> 
> The thing is that field is managed by SQLite. It assigns primary keys.. 
> 
> If I edit the same chart that was added through feature 2 in feature 1 it works, no problem.
> 
> Only if I edit through feature 2, same code, it says “Unique..failed”… 
> 
> I can’t quite grock this because SQLite manages those primary keys.. and it works through feature 1. I am saving through feature 2 the add of the record with the same reused code I use in feature 1 for so long now. Only edit through feature 2 brings up this error.. but there is no difference between the codes being used in the 2 features. 
> 
> This doesn’t make sense.. 
> 
> Shouldn’t it give up an error when I try to ADD INSERT in feature 2 if there is a problem with the uniqueness of the primary key?  
> 
> Why can I UPDATE (Edit) the record created by feature 2 in feature 1 and it gives no error.. no conflict. 
> 
> But if I try to UPDATE (Edit) through feature 2 it steadfastly gives this error… that makes no sense.. 
> 
> I am baffled
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com 



More information about the omnisdev-en mailing list