ghazel-mysql2 0.2.6.1 → 0.2.6.2
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/mysql2/result.c +1 -1
- data/mysql2.gemspec +1 -1
- metadata +3 -3
data/ext/mysql2/result.c
CHANGED
@@ -193,7 +193,7 @@ static VALUE rb_mysql_result_fetch_row(VALUE self, ID db_timezone, ID app_timezo
|
|
193
193
|
rb_raise(cMysql2Error, "Invalid date: %s", row[i]);
|
194
194
|
val = Qnil;
|
195
195
|
} else {
|
196
|
-
if (year <
|
196
|
+
if (year < 1970 || year+month+day > 2058) { // use DateTime instead
|
197
197
|
VALUE offset = INT2NUM(0);
|
198
198
|
if (db_timezone == intern_local) {
|
199
199
|
offset = rb_funcall(cMysql2Client, intern_local_offset, 0);
|
data/mysql2.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ghazel-mysql2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 67
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
9
|
- 6
|
10
|
-
-
|
11
|
-
version: 0.2.6.
|
10
|
+
- 2
|
11
|
+
version: 0.2.6.2
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Brian Lopez
|