FoundationDB/sql-layer — pull request #1434 by MMcM (2014-08-31 02:02:59+00:00)
Title: Make SetPlanNode.replaceInput set pointer in other direction, too.

The problem shows up with nested unions with conditions, due to the relatively recent handling for moving them around.