]> 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)
commit490437725e07c1eb86330cb2a21f0ff4e051cee5
tree34138ecbb3fb941f65731d7de6740dc68f8beadd
parenta058069587569172eba3898e0c55b7cb82bcf5b2
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