]> git.sur5r.net Git - bacula/bacula/commit
Make sql_insert_id a atomic function which executes the insert query and when that...
authorMarco van Wieringen <mvw@planets.elm.net>
Mon, 5 Apr 2010 16:53:04 +0000 (18:53 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 2 Aug 2010 14:49:44 +0000 (16:49 +0200)
commitbd4c6ce1ba73a3514c297bdc8c5053a8aa1d735b
tree167a48c06d1bf0340f6dd357159d02e26d60d950
parent81dda5b1bd2666709b08000fe7afb8bfe038f759
Make sql_insert_id a atomic function which executes the insert query and when that succeeds retrieves the id the database used for storing the inserted record. Some databases want this to be atomic (e.g. without a COMMIT in between.) Coding wise this is also much cleaner.
bacula/src/cats/cats.h
bacula/src/cats/dbi.c
bacula/src/cats/mysql.c
bacula/src/cats/postgresql.c
bacula/src/cats/sql_create.c
bacula/src/cats/sqlite.c