Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fix quoting for ActiveSupport::Duration instances | Francesco Rodriguez | 2012-07-04 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | This patch fixes quoting for ActiveSupport::Duration instances: # before >> ActiveRecord::Base.connection.quote 30.minutes => "'--- 1800\n...\n'" # after >> ActiveRecord::Base.connection.quote 30.minutes => "1800" Also, adds a test for type casting ActiveSupport::Duration instances. Related to #1119. | ||||
* | Fixed bug in Quoting that caused classes to be quoted incorrectly | Ryan Oblak | 2012-03-09 | 1 | -0/+1 |
| | |||||
* | Only show the type if column is present | Rafael Mendonça França | 2012-01-23 | 1 | -1/+2 |
| | |||||
* | Don't type-cast unknown types to YAML. | Stephen Celis | 2012-01-20 | 1 | -1/+1 |
| | |||||
* | Make the logic easier to read | Jon Leighton | 2011-09-06 | 1 | -4/+7 |
| | |||||
* | inserting big decimals as strings works consistently among dbs, so use ↵ | Aaron Patterson | 2011-04-14 | 1 | -1/+1 |
| | | | | string form | ||||
* | adding a type cast method for prepared statements | Aaron Patterson | 2011-04-14 | 1 | -0/+36 |
| | |||||
* | do not depend on to_yaml being called, but rather depend on YAML being dumped | Aaron Patterson | 2011-04-13 | 1 | -1/+1 |
| | |||||
* | Make serialized fixtures work again | Pratik Naik | 2010-12-29 | 1 | -1/+2 |
| | |||||
* | dry up column type testing | Aaron Patterson | 2010-10-12 | 1 | -5/+5 |
| | |||||
* | all columns respond to string_to_binary, so no need to check respond_to? | Aaron Patterson | 2010-10-12 | 1 | -2/+2 |
| | |||||
* | drying up true and false cases | Aaron Patterson | 2010-10-12 | 1 | -3/+7 |
| | |||||
* | reducing comparisons in when statements | Aaron Patterson | 2010-10-12 | 1 | -6/+6 |
| | |||||
* | removing intermediate variables | Aaron Patterson | 2010-10-12 | 1 | -2/+1 |
| | |||||
* | reduce the number of times we test for the column variable | Aaron Patterson | 2010-10-12 | 1 | -2/+5 |
| | |||||
* | refactoring date / time / datetime when statement | Aaron Patterson | 2010-10-12 | 1 | -11/+8 |
| | |||||
* | fixing case / when indentation | Aaron Patterson | 2010-10-12 | 1 | -20/+20 |
| | |||||
* | query value is converted to_s instead of to_yaml | RainerBlessing | 2010-08-03 | 1 | -1/+1 |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Remove quoted_string_prefix entirely since PostgreSQL was the only database ↵ | Jeremy Kemper | 2010-04-24 | 1 | -7/+3 |
| | | | | adapter relying on it. | ||||
* | quoted_date converts time-like objects to ↵ | Geoff Buesing | 2009-08-03 | 1 | -1/+6 |
| | | | | ActiveRecord::Base.default_timezone before serialization. This allows you to use Time.now in find conditions and have it correctly be serialized as the current time in UTC when default_timezone == :utc [#2946 state:resolved] | ||||
* | Cherry-pick core extensions | Jeremy Kemper | 2009-05-13 | 1 | -0/+2 |
| | |||||
* | Quote table names. Defaults to column quoting. Closes #4593. | Jeremy Kemper | 2007-10-16 | 1 | -4/+8 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7932 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Improve performance and functionality of the postgresql adapter. Closes ↵ | Michael Koziarski | 2007-08-16 | 1 | -3/+7 |
| | | | | | | #8049 [roderickvd] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7329 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Use Date#to_s(:db) for quoted dates. Closes #7411. | Jeremy Kemper | 2007-01-28 | 1 | -6/+4 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6061 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | be like a duck. Let's not rely on explicit classes, so we can pass proxy ↵ | Jamis Buck | 2007-01-15 | 1 | -3/+8 |
| | | | | | | objects around and have them interpreted correctly by ActiveRecord's serialization routines git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5953 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Quote ActiveSupport::Multibyte::Chars. Closes #6653. | Jeremy Kemper | 2006-11-20 | 1 | -1/+2 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5597 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Patch sql injection vulnerability when using integer or float columns. | Jamis Buck | 2006-07-27 | 1 | -1/+2 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4626 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | r4704@asus: jeremy | 2006-06-27 12:00:19 -0700 | Jeremy Kemper | 2006-07-08 | 1 | -7/+9 |
| | | | | | | | | | | | | | | | decimal r4705@asus: jeremy | 2006-06-27 12:20:47 -0700 current_adapter? checks whether any of its arguments is the name of the current adapter class r4834@asus: jeremy | 2006-07-08 13:08:24 -0700 Room to float. r4835@asus: jeremy | 2006-07-08 13:09:18 -0700 Give lock test a few chances. r4836@asus: jeremy | 2006-07-08 13:12:05 -0700 Numeric and decimal columns map to BigDecimal instead of Float. Those with scale 0 map to Integer. Closes #5454. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4596 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Records and arrays of records are bound as quoted ids. | Jeremy Kemper | 2006-06-01 | 1 | -0/+3 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4391 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Fixed db_schema_import when binary types are present (closes #3101) [DHH] | David Heinemeier Hansson | 2006-03-25 | 1 | -1/+1 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4031 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Add option (true by default) to generate reader methods for each attribute ↵ | Marcel Molina | 2005-10-07 | 1 | -3/+3 |
| | | | | | | of a record to avoid the overhead of calling method missing. In partial fullfilment of #1236. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2483 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Quote booleans according the rules defined by the adapter | Michael Koziarski | 2005-10-06 | 1 | -3/+7 |
| | | | | | | | | | | * SQLite schema has been updated * Postgresql schema needs to be fixed too Simplify AR::Base#toggle to store the boolean, not the quoted value * expand the tests git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2474 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Add extensive documentation to the ActiveRecord::AbstractAdapter. #2250 | Marcel Molina | 2005-09-27 | 1 | -1/+6 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2371 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Refactored the AbstractAdapter to be a lot less scary. Cleaned up the docs ↵ | David Heinemeier Hansson | 2005-09-25 | 1 | -0/+42 |
and style for the OSS adapters git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2339 5ecf4fe2-1ee6-0310-87b1-e25e094e27de |