Fix for issue #2374 (INSERT .. RETURNING always returns null for dynamically created tables)
Merge pull request #2377 from svenjacobs/master

[#2374] INSERT .. RETURNING always returns null for dynamically created tables - Canonical implementation contributed by Steven Jacobs