/*
* First execute the insert query and then retrieve the currval.
*/
- if (my_dbi_query(mdb, query)) {
+ if (!my_dbi_query(mdb, query)) {
return 0;
}
/*
* First execute the insert query and then retrieve the currval.
*/
- if (mysql_query(mdb->db, query)) {
+ if (!mysql_query(mdb->db, query)) {
return 0;
}
/*
* First execute the insert query and then retrieve the currval.
*/
- if (my_postgresql_query(mdb, query)) {
+ if (!my_postgresql_query(mdb, query)) {
return 0;
}
/*
* First execute the insert query and then retrieve the currval.
*/
- if (my_sqlite_query(mdb, query)) {
+ if (!my_sqlite_query(mdb, query)) {
return 0;
}