Fixed odb::foreach test failure on BE