Honor sdb_foreach signature