Address ORA-00911 errors because of the heading underscore. #6698

Merged
merged 1 commit into from Jun 11, 2012

Conversation

Projects
None yet
2 participants
Contributor

yahonda commented Jun 11, 2012

This pull request address errors discussed in be4ecdc for master branch.

  1) Error:
test_dont_add_if_before_callback_raises_exception(AssociationCallbacksTest):
ActiveRecord::StatementInvalid: OCIError: ORA-00911: invalid character: SELECT  1 AS _one FROM "POSTS"  WHERE "POSTS"."AUTHOR_ID" = 1 AND "POSTS"."ID" = 3 AND ROWNUM <= 1
    stmt.c:253:in oci8lib_191.so

Tested with postgresql, mysql, mysql2 and sqlite3 adapters also.

rafaelfranca merged commit b5d82e2 into rails:master Jun 11, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment