Ticket #883: diff

File diff, 416 bytes (added by gombasg, 16 years ago)
  • db/db_base.cpp

    diff --git a/db/db_base.cpp b/db/db_base.cpp
    index 279cf14..a8ab6b2 100644
    a b int DB_CONN::insert_id() { 
    113113    if (retval) return retval;
    114114    rp = mysql_store_result(mysql);
    115115    row = mysql_fetch_row(rp);
     116    retval = atoi(row[0]);
    116117    mysql_free_result(rp);
    117     return atoi(row[0]);
     118    return retval;
    118119}
    119120
    120121void DB_CONN::print_error(const char* p) {