[ticket/12570] Add a unit test to show broken sql_affectedrows()

PHPBB3-12570