V(mutex);
}
+void db_check_backend_thread_safe()
+{ }
+
void db_thread_cleanup()
{ }
return buf;
}
-static int my_dbi_sequence_last(B_DB *mdb, char *table_name)
+static int my_dbi_sequence_last(B_DB *mdb, const char *table_name)
{
/*
Obtain the current value of the sequence that
return id;
}
-int my_dbi_sql_insert_id(B_DB *mdb, const char *query, const char *table_name)
+int my_dbi_insert_autokey_record(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;
}