aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/adapters/postgresql/bytea_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Rename `type_cast` to `type_cast_from_database`Sean Griffin2014-06-091-3/+3
| | | | | | | | In some cases there is a difference between the two, we should always be doing one or the other. For convenience, `type_cast` is still a private method on type, so new types that do not need different behavior don't need to implement two methods, but it has been moved to private so it cannot be used accidentally.
* test pg, rm unused requires.Yves Senn2014-06-031-3/+0
|
* test, use `columns_hash[]` in place of `columns.find {}`.Yves Senn2014-05-121-1/+1
|
* Remove warning of unused variableRafael Mendonça França2014-04-101-1/+1
|
* Use connection-specific bytea escapingMatthew Draper2014-04-081-0/+17
| | | | | | | | | | In our normal usage, it's rare for this to make a difference... but is more technically correct. As well as a spec that proves this is a good idea, let's also add a more sane-looking one that just covers basic to_sql functionality. There aren't many places where we actually use escape_bytea, but that's one that won't be going away.
* Use teardown helper method.Guo Xiang Tan2014-03-141-1/+1
| | | | | | | | Follow-Up to https://github.com/rails/rails/pull/14348 Ensure that SQLCounter.clear_log is called after each test. This is a step to prevent side effects when running tests. This will allow us to run them in random order.
* using assert_not instead of refuteRajarshi Das2013-08-131-3/+3
|
* the typecast value should be passed to the serializer. fixes #10830Aaron Patterson2013-06-051-1/+0
|
* adding a test for #10830Aaron Patterson2013-06-051-0/+18
| | | | | Conflicts: activerecord/test/cases/adapters/postgresql/bytea_test.rb
* fix for the bytea/binary nil value bugMatt Aimonetti2013-04-141-1/+1
|
* added a test suite for the postgres binary typeMatt Aimonetti2013-04-141-0/+87
this shows a problem with nil values