On Fri, Nov 14, 2014 at 10:50 AM, Reimar Grabowski <[email protected]> wrote:
> On Fri, 14 Nov 2014 14:15:08 +0100 (CET) > Michael Van Canneyt <[email protected]> wrote: > > > Connections for databases that have lastinsertID you can call the method > created for this: > > > > Function GetInsertID: int64; > That is actually exactly what I was looking for. > I was just too dense to realize that it belongs to the connection, not the > query and didn't look for it there. > Shame on me. > > Thanks a lot +1 ID/Sequence generation must work out of transactions. It will be a nice new feature in SQLdb! =) Currently I use it via cursor from the database driver. It is very very fast and is transaction independent. =) -- Silvio Clécio My public projects - github.com/silvioprog
-- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
