rsim/oracle-enhanced — pull request #132 by jasonkarns (2011-12-01 19:16:57+00:00)
Title: Don't add the RETURNING clause if using composite_primary_keys gem

The RETURNING clause, added for AR 3.1, returns into a single parameter. There are a few potential fixes for this. The composite_primary_keys gem should be updated to override the insert method, such that the primary_keys_value parameter to connection.insert is properly populated (as an array of values, or a hash). Barring this fix, oracle_enhanced should guard against adding the RETURNING clause. Either that, or the RETURNING clause should be updated to support returning into multiple parameters.