Replacement for :
Ns_DbReturnError(conn, dbh[0], "DB Error:", NULL);

Is this something like:
Ns_DbSetException (dbh[0],"DB ERROR", NULL);

or a call to something else?

Code looks like:

sprintf(sql2, "select distinct a.holding_id id %s and a.holding_id > %d
order by id;", sql1.string, last);

if ((row = Ns_DbSelect(dbh[0], sql2)) == NULL) {
    Ns_DbReturnError(conn, dbh[0], "DB Error:", NULL);
}

Reply via email to