sqlpostgres 1.2.5 → 1.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.4
1
+ 1.2.6
@@ -321,7 +321,7 @@ module SqlPostgres
321
321
  # 11:30:24.000000-07")
322
322
 
323
323
  def datetime_to_sql(d)
324
- d.strftime("%Y-%m-%d %H:%M:%S%z").gsub(/Z$/, "+0000")
324
+ d.strftime("%Y-%m-%d %H:%M:%S.%N%z").gsub(/Z$/, "+0000")
325
325
  end
326
326
  module_function :datetime_to_sql
327
327
 
data/sqlpostgres.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "sqlpostgres"
8
- s.version = "1.2.5"
8
+ s.version = "1.2.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Wayne Conrad"]
@@ -56,7 +56,7 @@ class TranslateTest < Test
56
56
  ],
57
57
  [
58
58
  DateTime.civil(2001, 1, 1, 0, 0, 0, Rational(7, 24)),
59
- "timestamp with time zone '2001-01-01 00:00:00+0700'",
59
+ "timestamp with time zone '2001-01-01 00:00:00.000000000+0700'",
60
60
  ],
61
61
  [Date.civil(2001, 1, 1), "date '2001-01-01'"],
62
62
  [
@@ -310,7 +310,7 @@ class TranslateTest < Test
310
310
  [1970, 12, 31, 23, 59, 59, -11],
311
311
  ]
312
312
  for testCase in testCases
313
- sql = "%04d-%02d-%02d %02d:%02d:%02d%+03d00" % testCase
313
+ sql = "%04d-%02d-%02d %02d:%02d:%02d.000000000%+03d00" % testCase
314
314
  dateTime = DateTime.civil(*testCase[0..5] +
315
315
  [Rational(testCase[6], 24)])
316
316
  assertEquals(Translate.datetime_to_sql(dateTime), sql)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sqlpostgres
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 5
10
- version: 1.2.5
9
+ - 6
10
+ version: 1.2.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Wayne Conrad