diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-07-07 17:40:22 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-07-07 17:40:22 +0000 |
commit | c4233a0eaeceba0800990a4ae7eb2ab52a15c737 (patch) | |
tree | 4709166fdddc4d5b98fbdb0227c702a17a1272d1 /activerecord/test | |
parent | 230c5a060ba7fe3ac2f78f5975debd04e85167cb (diff) | |
download | rails-c4233a0eaeceba0800990a4ae7eb2ab52a15c737.tar.gz rails-c4233a0eaeceba0800990a4ae7eb2ab52a15c737.tar.bz2 rails-c4233a0eaeceba0800990a4ae7eb2ab52a15c737.zip |
PostgreSQL: correctly quote microseconds in timestamps. Closes #5641.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4579 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test')
-rwxr-xr-x | activerecord/test/base_test.rb | 1 | ||||
-rw-r--r-- | activerecord/test/fixtures/topics.yml | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/test/base_test.rb b/activerecord/test/base_test.rb index 9d010c813a..6ccf14af1b 100755 --- a/activerecord/test/base_test.rb +++ b/activerecord/test/base_test.rb @@ -320,6 +320,7 @@ class BasicsTest < Test::Unit::TestCase if current_adapter?(:PostgreSQLAdapter) assert_equal 11, Topic.find(1).written_on.sec assert_equal 223300, Topic.find(1).written_on.usec + assert_equal 9900, Topic.find(2).written_on.usec end end diff --git a/activerecord/test/fixtures/topics.yml b/activerecord/test/fixtures/topics.yml index e78c0e1b3d..e61d17c00c 100644 --- a/activerecord/test/fixtures/topics.yml +++ b/activerecord/test/fixtures/topics.yml @@ -14,7 +14,7 @@ second: id: 2 title: The Second Topic's of the day author_name: Mary - written_on: 2003-07-15t15:28:00.00+01:00 + written_on: 2003-07-15t15:28:00.0099+01:00 content: Have a nice day approved: true replies_count: 0 |