Subject | Re: [firebird-support] Why I cannot add a primary key? |
---|---|
Author | Thomas Steinmaurer |
Post date | 2011-07-22T06:53:59Z |
> The table had another rows before, but I had deleted them and commited. IMy test was with existing records, so if you have declared the third
> had added new rows and commited.
>
> That can be the problem?
field as NOT NULL, committed this change, inserted values into this new
field, committed that as well, then the new primary key constraint
should work fine.
Are you the only one connected to the database when doing this change?
> By the way, I'm using version 2.5My test ran with 2.1.4 and 2.5.0 just fine.
--
With regards,
Thomas Steinmaurer
Upscene Productions
http://www.upscene.com
http://blog.upscene.com/thomas/
Download LogManager Series, FB TraceManager today!
Continuous Database Monitoring Solutions supporting
Firebird, InterBase, Advantage Database, MS SQL Server
and NexusDB!