[Firebird-devel] Fwd: Created: (CORE-4191) Define sequence name for "Identity Column Type"

2013-08-27 Thread Adriano dos Santos Fernandes
Hi! I think an USING clause would be a great addition: GENERATED BY DEFAULT AS IDENTITY [USING SEQUENCE ] What do you think? Adriano Original Message Subject:[Firebird-devel] [FB-Tracker] Created: (CORE-4191) Define sequence name for "Identity Column Type" Date: F

Re: [Firebird-devel] Fwd: Created: (CORE-4191) Define sequence name for "Identity Column Type"

2013-08-27 Thread Leyne, Sean
> I think an USING clause would be a great addition: > > GENERATED BY DEFAULT AS IDENTITY [USING SEQUENCE ] > > What do you think? What Sequence (name) would be used if the USING was omitted? Sean -- Learn the late

Re: [Firebird-devel] Fwd: Created: (CORE-4191) Define sequence name for "Identity Column Type"

2013-08-27 Thread Adriano dos Santos Fernandes
On 27/08/2013 13:30, Leyne, Sean wrote: > >> I think an USING clause would be a great addition: >> >> GENERATED BY DEFAULT AS IDENTITY [USING SEQUENCE ] >> >> What do you think? > What Sequence (name) would be used if the USING was omitted? > > A generated one, like now and like happens with constr

Re: [Firebird-devel] Fwd: Created: (CORE-4191) Define sequence name for "Identity Column Type"

2013-08-27 Thread Dmitry Yemanov
27.08.2013 20:03, Adriano dos Santos Fernandes wrote: > > I think an USING clause would be a great addition: > > GENERATED BY DEFAULT AS IDENTITY [USING SEQUENCE ] > > What do you think? Basically, I don't mind, but the behavior will be different from constraints in regard to the already existing

Re: [Firebird-devel] Fwd: Created: (CORE-4191) Define sequence name for "Identity Column Type"

2013-08-27 Thread Adriano dos Santos Fernandes
On 27/08/2013 14:11, Dmitry Yemanov wrote: > 27.08.2013 20:03, Adriano dos Santos Fernandes wrote: >> I think an USING clause would be a great addition: >> >> GENERATED BY DEFAULT AS IDENTITY [USING SEQUENCE ] >> >> What do you think? > Basically, I don't mind, but the behavior will be different fr

Re: [Firebird-devel] Fwd: Created: (CORE-4191) Define sequence name for "Identity Column Type"

2013-08-27 Thread Leyne, Sean
> >> I think an USING clause would be a great addition: > >> > >> GENERATED BY DEFAULT AS IDENTITY [USING SEQUENCE ] > >> > >> What do you think? > > What Sequence (name) would be used if the USING was omitted? > > > > > A generated one, like now and like happens with constraints and indexes. Ar

Re: [Firebird-devel] Fwd: Created: (CORE-4191) Define sequence name for "Identity Column Type"

2013-08-27 Thread Leyne, Sean
> On 27/08/2013 14:11, Dmitry Yemanov wrote: > > 27.08.2013 20:03, Adriano dos Santos Fernandes wrote: > >> I think an USING clause would be a great addition: > >> > >> GENERATED BY DEFAULT AS IDENTITY [USING SEQUENCE ] > >> > >> What do you think? > > Basically, I don't mind, but the behavior wi

Re: [Firebird-devel] Fwd: Created: (CORE-4191) Define sequence name for "Identity Column Type"

2013-08-27 Thread Adriano dos Santos Fernandes
On 27/08/2013 15:06, Leyne, Sean wrote: > I think an USING clause would be a great addition: GENERATED BY DEFAULT AS IDENTITY [USING SEQUENCE ] What do you think? >>> What Sequence (name) would be used if the USING was omitted? >>> >>> >> A generated one, like now and like

Re: [Firebird-devel] Fwd: Created: (CORE-4191) Define sequence name for "Identity Column Type"

2013-08-27 Thread Dalton Calford
if firebird supported namespaces/schema AND longer identifiers, this would be alot simpler... On 27 August 2013 14:11, Leyne, Sean wrote: > > > > On 27/08/2013 14:11, Dmitry Yemanov wrote: > > > 27.08.2013 20:03, Adriano dos Santos Fernandes wrote: > > >> I think an USING clause would be a

Re: [Firebird-devel] Fwd: Created: (CORE-4191) Define sequence name for "Identity Column Type"

2013-08-27 Thread Leyne, Sean
> I think an USING clause would be a great addition: > > GENERATED BY DEFAULT AS IDENTITY [USING SEQUENCE ] > > What do you think? > >>> What Sequence (name) would be used if the USING was omitted? > >>> > >>> > >> A generated one, like now and like happens with constrain

Re: [Firebird-devel] Fwd: Created: (CORE-4191) Define sequence name for "Identity Column Type"

2013-08-27 Thread Adriano dos Santos Fernandes
The user issue is about managing the internal generator. You can do it now, but you need to discover its internal name. Why complicate things? Identity columns allows the use to put manually generated values. So the ability to manage a sequence is a must-have. And if a object can be managed, it

Re: [Firebird-devel] Fwd: Created: (CORE-4191) Define sequence name for "Identity Column Type"

2013-08-27 Thread Adriano dos Santos Fernandes
On 27/08/2013 15:19, Leyne, Sean wrote: > >> I think an USING clause would be a great addition: >> >> GENERATED BY DEFAULT AS IDENTITY [USING SEQUENCE ] >> >> What do you think? > What Sequence (name) would be used if the USING was omitted? > > A generated one,

Re: [Firebird-devel] Fwd: Created: (CORE-4191) Define sequence name for "Identity Column Type"

2013-08-27 Thread Dimitry Sibiryakov
27.08.2013 20:22, Adriano dos Santos Fernandes wrote: > The user issue is about managing the internal generator. > > You can do it now, but you need to discover its internal name. > > Why complicate things? Complication is managing identity columns via generator. Every operation should be per

Re: [Firebird-devel] Fwd: Created: (CORE-4191) Define sequence name for "Identity Column Type"

2013-08-27 Thread Adriano dos Santos Fernandes
On 27/08/2013 16:26, Dimitry Sibiryakov wrote: > 27.08.2013 20:22, Adriano dos Santos Fernandes wrote: >> The user issue is about managing the internal generator. >> >> You can do it now, but you need to discover its internal name. >> >> Why complicate things? >Complication is managing identity

Re: [Firebird-devel] Fwd: Created: (CORE-4191) Define sequence name for "Identity Column Type"

2013-08-27 Thread Dimitry Sibiryakov
27.08.2013 22:06, Adriano dos Santos Fernandes wrote: > Why do a future version will go against the SQL standard? Does standard explicitly mention that identity's internal sequence must be user-manipulatible? Does it say that in must be the same type of sequence as "standalone" ones? Say,

Re: [Firebird-devel] Fwd: Created: (CORE-4191) Define sequence name for "Identity Column Type"

2013-08-27 Thread Leyne, Sean
Dimitry, >Does standard explicitly mention that identity's internal sequence must be > user-manipulatible? Does it say that in must be the same type of sequence > as "standalone" ones? > >Say, Firebird one day decide to support cluster/cloud architecture and keep > values in identity colum

[Firebird-devel] Odp: Fwd: Created: (CORE-4191) Define sequence name for "Identity Column Type"

2013-08-27 Thread liviusliv...@poczta.onet.pl
Hi, This is only theory about guids. I remember my real situation 10 servers from the same part no. System with 1000 new rec per sec and every day we got e.g 20 records with the same guid on different mashines. We change design to prefix keys in all servers unique. Regards, Karol Bieniaszewski