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 +1 -1
- data/lib/sqlpostgres/Translate.rb +1 -1
- data/sqlpostgres.gemspec +1 -1
- data/test/Translate.test.rb +2 -2
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.6
|
data/sqlpostgres.gemspec
CHANGED
data/test/Translate.test.rb
CHANGED
@@ -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:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 1.2.
|
9
|
+
- 6
|
10
|
+
version: 1.2.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Wayne Conrad
|