6.1 Synchronize Wizard and Sequences

Discuss all problems you have with Servoy here. It might help to mention the Servoy version and Operating System version you are using

6.1 Synchronize Wizard and Sequences

Postby gdurniak » Wed Apr 10, 2013 1:07 pm

From Quick Fix, I just used the Synchronize Wizard to generate a missing dbi file

it set the PK to servoy seq, while that Sybase 10.0.1 column is set to autoincrement

is this correct ?

greg
File Shoppe
gdurniak
 
Posts: 232
Joined: Thu Jul 08, 2004 7:25 pm
Location: Bayside, NY, USA

Re: 6.1 Synchronize Wizard and Sequences

Postby rgansevles » Mon Apr 15, 2013 10:26 am

Greg,

Servoy tests each table if the pk is autoincrement, regardless of the pk setting.
If you create new records, which is actually used?

Rob
Rob Gansevles
Servoy
User avatar
rgansevles
 
Posts: 1927
Joined: Wed Nov 15, 2006 6:17 pm
Location: Amersfoort, NL

Re: 6.1 Synchronize Wizard and Sequences

Postby gdurniak » Tue Apr 16, 2013 4:16 pm

if Servoy "tests each table", then the "bug" is minor. It's just not displayed properly

( but then the Wizard should "test each table" too )

The "next" serial number is the same, so hard to tell which wins out

greg

> Servoy tests each table if the pk is autoincrement, regardless of the pk setting.

If you create new records, which is actually used?
File Shoppe
gdurniak
 
Posts: 232
Joined: Thu Jul 08, 2004 7:25 pm
Location: Bayside, NY, USA

Re: 6.1 Synchronize Wizard and Sequences

Postby rgansevles » Tue Apr 16, 2013 9:40 pm

Greg,

For servoy-sequence in developer we do a select-max to find the next value (in ApplicationServer the sequence is managed by the repository).

You could create a few new records, say ids 1, 2, 3
then delete 2 and 3, restart developer and then create a new record.

in developer, servoy sequence will generate 2, your autoincrement will probably generate 4.

Rob
Rob Gansevles
Servoy
User avatar
rgansevles
 
Posts: 1927
Joined: Wed Nov 15, 2006 6:17 pm
Location: Amersfoort, NL

Re: 6.1 Synchronize Wizard and Sequences

Postby gdurniak » Wed Apr 17, 2013 11:17 am

if you create the record in Servoy, the Servoy Seq is used ( which was a surprise )

if I create the record in Sybase Central, the autoincrement is used

this could be nasty if they get out of sych, e.g. by deleting some records, as you suggested

greg

> If you create new records, which is actually used ?
File Shoppe
gdurniak
 
Posts: 232
Joined: Thu Jul 08, 2004 7:25 pm
Location: Bayside, NY, USA

Re: 6.1 Synchronize Wizard and Sequences

Postby rgansevles » Tue Apr 23, 2013 10:52 am

Greg,

What happens if you export this solution to an application server, which sequence will then be used?

Rob
Rob Gansevles
Servoy
User avatar
rgansevles
 
Posts: 1927
Joined: Wed Nov 15, 2006 6:17 pm
Location: Amersfoort, NL


Return to Discuss possible Issues and Bugs

Who is online

Users browsing this forum: No registered users and 10 guests

cron