Revision 822602ca

View differences:

src/sql/MySqlDB.cc
234 234
        // Fetch each row, and call-back the object waiting for them
235 235
        while((row = mysql_fetch_row(result)))
236 236
        {
237
            obj->do_callback(num_fields, row, names);
237
            if ( obj->do_callback(num_fields, row, names) != 0 )
238
            {
239
                rc = -1;
240
                break;
241
            }
238 242
        }
239 243

  
240 244
        // Free the result object
......
245 249

  
246 250
    free_db_connection(db);
247 251

  
248
    return 0;
252
    return rc;
249 253
}
250 254

  
251 255
/* -------------------------------------------------------------------------- */

Also available in: Unified diff