From: Marco van Wieringen Date: Wed, 7 Apr 2010 18:08:43 +0000 (+0200) Subject: Fix stupid inverted logic X-Git-Tag: Release-7.0.0~1983 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=47ca4e46d0d43444e0490b5a5e61dd8908e0822e;p=bacula%2Fbacula Fix stupid inverted logic --- diff --git a/bacula/src/cats/dbi.c b/bacula/src/cats/dbi.c index 5ed4359f4f..a9d90ee744 100644 --- a/bacula/src/cats/dbi.c +++ b/bacula/src/cats/dbi.c @@ -1280,7 +1280,7 @@ int my_dbi_sql_insert_id(B_DB *mdb, const char *query, const char *table_name) /* * First execute the insert query and then retrieve the currval. */ - if (!my_dbi_query(mdb, query)) { + if (my_dbi_query(mdb, query)) { return 0; } diff --git a/bacula/src/cats/mysql.c b/bacula/src/cats/mysql.c index f283416204..5124dd2a90 100644 --- a/bacula/src/cats/mysql.c +++ b/bacula/src/cats/mysql.c @@ -385,7 +385,7 @@ int my_mysql_sql_insert_id(B_DB *mdb, const char *query, const char *table_name) /* * First execute the insert query and then retrieve the currval. */ - if (!mysql_query(mdb->db, query)) { + if (mysql_query(mdb->db, query)) { return 0; } diff --git a/bacula/src/cats/postgresql.c b/bacula/src/cats/postgresql.c index 69028f4dbd..74ced4d6e4 100644 --- a/bacula/src/cats/postgresql.c +++ b/bacula/src/cats/postgresql.c @@ -662,7 +662,7 @@ int my_postgresql_insert_id(B_DB *mdb, const char *query, const char *table_name /* * First execute the insert query and then retrieve the currval. */ - if (!my_postgresql_query(mdb, query)) { + if (my_postgresql_query(mdb, query)) { return 0; } diff --git a/bacula/src/cats/sqlite.c b/bacula/src/cats/sqlite.c index ea7299498f..96e131c7a9 100644 --- a/bacula/src/cats/sqlite.c +++ b/bacula/src/cats/sqlite.c @@ -505,7 +505,7 @@ int my_sqlite_sql_insert_id(B_DB *mdb, const char *query, const char *table_name /* * First execute the insert query and then retrieve the currval. */ - if (!my_sqlite_query(mdb, query)) { + if (my_sqlite_query(mdb, query)) { return 0; }