Gossamer Forum
Home : Products : Gossamer Links : Discussions :

ID count in deleting links

Quote Reply
ID count in deleting links
hello
I have some strange things with the link ID
when I add my first link it gets normally ID 1
when I delete this link, it works fine.
when I add my first link again it gets normally ID 2

How is this possible???
I repair the tables, and rebuild search.


Quote Reply
Re: ID count in deleting links In reply to
When you delete a link I don't think it deletes one from the LinkID total, it just stays as it is and so when you add the next URL it will go to two instead of from one to zero to one again.

I think anyway - I have a feeling I may not have got that right.

Paul Wilson.
http://www.wiredon.net/gt/
http://www.perlmad.com/
Quote Reply
Re: ID count in deleting links In reply to
That is how AUTO-INCREMENT field works in MySQLMan...When you set the primary key to AUTO-INCREMENT, it will assign the next available ID number...so, what you have explained is what should happen....

Read up on http://www.mysql.com and basic database field type definitions...

Regards,

Eliot Lee
Quote Reply
Re: ID count in deleting links In reply to
Oh thanks, I did not realise this, but the most important thing is, that this is not a bug in Links-SQL