Open GoogleCodeExporter opened 8 years ago
What's the difference between seq() and seq_nextval() ?
Original comment by shlomi.n...@gmail.com
on 10 Aug 2011 at 5:10
Its a synonym.
In our company we use seq() - and seq_nextval() is an Oracle convention.
Original comment by lstrash...@gmail.com
on 10 Aug 2011 at 3:41
The big problem I have with the notion of sequence generator is that it makes
common_schema stateful.
So if anyone were to rebuild common_schema, sequences would start going mad.
Also, I have a problem with MyISAM tables, since they are not crash safe; I
wouldn't want to rely on non-crash safe mechanism for my sequences.
Original comment by shlomi.n...@gmail.com
on 6 Sep 2011 at 10:26
You are correct. Rebuilding is a manual process.
The only reason why I am using myISAM is that the seq() function can be used
inside innodb transactions.
I don't think that in case of crash we worry to much about sequences as long
as they not going backwards :)
I.e. I don't really care if next_val created or not during crash as long it
is not used, and that is insured by innodb.
Original comment by lstrash...@gmail.com
on 6 Sep 2011 at 3:40
Original issue reported on code.google.com by
lstrash...@gmail.com
on 2 Aug 2011 at 10:41