]> 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)
committerMarco van Wieringen <mvw@planets.elm.net>
Fri, 9 Apr 2010 11:36:50 +0000 (13:36 +0200)
commited89adc8a1d40dda9739903ae7341485ba356487
treeddf12dc9a13f90f365bcba99cbb13ba9d3204b1a
parente4c79f3a2a6e9eff312b474fda10e097660e131f
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/ingres.c
bacula/src/cats/mysql.c
bacula/src/cats/postgresql.c
bacula/src/cats/sql_create.c
bacula/src/cats/sqlite.c