aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/adapters/sqlite3/quoting_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Delegate `Column#type` to the injected type objectSean Griffin2014-05-191-6/+6
| | | | | | | | | | | | | | | | The decision to wrap type registrations in a proc was made for two reasons. 1. Some cases need to make an additional decision based on the type (e.g. a `Decimal` with a 0 scale) 2. Aliased types are automatically updated if they type they point to is updated later. If a user or another adapter decides to change the object used for `decimal` columns, `numeric`, and `number` will automatically point to the new type, without having to track what types are aliased explicitly. Everything else here should be pretty straightforward. PostgreSQL ranges had to change slightly, since the `simplified_type` method is gone.
* Add a type object to Column constructorSean Griffin2014-05-171-6/+6
| | | | | | Part of #15134. In order to perform typecasting polymorphically, we need to add another argument to the constructor. The order was chosen to match the `oid_type` on `PostgreSQLColumn`.
* Test typecasting on instance rather than class itselfAkshay Vishnoi2014-05-031-1/+1
|
* quoting: Check if id is a valid method before using itArthur Neves2013-12-191-0/+7
| | | | | Need to check if valud also respond_to :id before calling it, otherwise things could explode.
* Use Encoding::UTF_8 constant :do_not_litter:Akira Matsuda2013-01-281-1/+1
|
* fix tests for SQLite3AdapterAndrey Deryabin2012-04-271-1/+1
|
* only log an error if there is a logger. fixes #5226Aaron Patterson2012-03-021-0/+9
|
* Don't type-cast unknown types to YAML.Stephen Celis2012-01-201-2/+2
|
* bigdecimal should be typecast to a float on sqlite3. fixes #2162Aaron Patterson2011-07-201-1/+1
|
* please use ruby -I lib:test path/to/test.rb, or export RUBY_OPTAaron Patterson2011-06-061-1/+1
|
* Refactor Active Record test connection setup. Please see the ↵Jon Leighton2011-06-041-1/+1
| | | | RUNNING_UNIT_TESTS file for details, but essentially you can now configure things in test/config.yml. You can also run tests directly via the command line, e.g. ruby path/to/test.rb (no rake needed, uses default db connection from test/config.yml). This will help us fix the CI by enabling us to isolate the different Rails versions to different databases.
* inserting big decimals as strings works consistently among dbs, so use ↵Aaron Patterson2011-04-141-1/+1
| | | | string form
* adding a type cast method for prepared statementsAaron Patterson2011-04-141-0/+93