ghazel-mysql2 0.2.6.1 → 0.2.6.2

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.
Files changed (3) hide show
  1. data/ext/mysql2/result.c +1 -1
  2. data/mysql2.gemspec +1 -1
  3. 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 < 1902 || year+month+day > 2058) { // use DateTime instead
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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ghazel-mysql2}
8
- s.version = "0.2.6.1"
8
+ s.version = "0.2.6.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Brian Lopez"]
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: 69
4
+ hash: 67
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
9
  - 6
10
- - 1
11
- version: 0.2.6.1
10
+ - 2
11
+ version: 0.2.6.2
12
12
  platform: ruby
13
13
  authors:
14
14
  - Brian Lopez