The attach method on the JDBC persistent ID management code is using the wrong SQL statement due to a cut and paste error.
Cherry-picked back to 3.4 branch.
This should be cherry-picked back if we do a patch.
The attach method on the JDBC persistent ID management code is using the wrong SQL statement due to a cut and paste error.