[#2374] INSERT .. RETURNING always returns null for dynamically created
tables - Added an integration test