diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-10-26 12:47:23 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-10-26 12:47:23 +0000 |
commit | 85a7892644cf16e004939fa5e26201d330de264d (patch) | |
tree | 238ee32c5e87ff7dc2a03a6c0e1ea2c508de714c /activerecord/lib | |
parent | 88bc13a01d435b337ae0abf623545f327d07ef25 (diff) | |
download | rails-85a7892644cf16e004939fa5e26201d330de264d.tar.gz rails-85a7892644cf16e004939fa5e26201d330de264d.tar.bz2 rails-85a7892644cf16e004939fa5e26201d330de264d.zip |
Added quoted_true and quoted_false methods to db2_adapter and cleaned up tests for DB2 (closes #2493) [maik schmidt]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2739 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/db2_adapter.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/db2_adapter.rb b/activerecord/lib/active_record/connection_adapters/db2_adapter.rb index ab13494153..cc0e535123 100644 --- a/activerecord/lib/active_record/connection_adapters/db2_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/db2_adapter.rb @@ -145,6 +145,14 @@ begin } end + def quoted_true + '1' + end + + def quoted_false + '0' + end + private def last_insert_id |