File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 4
4
static rb_encoding * binaryEncoding ;
5
5
#endif
6
6
7
- #define MYSQL2_MAX_YEAR 2058
7
+ #define MYSQL2_MAX_YEAR 2038
8
8
9
9
#ifdef NEGATIVE_TIME_T
10
10
/* 1901-12-13 20:45:52 UTC : The oldest time in 32-bit signed time_t. */
Original file line number Diff line number Diff line change 173
173
r . first [ 'test' ] . class . should eql ( DateTime )
174
174
end
175
175
176
+ it "should return DateTime when time > year 2038" do
177
+ r = @client . query ( "SELECT CAST('2039-01-01 01:01:01' AS DATETIME) as test" )
178
+ r . first [ 'test' ] . class . should eql ( DateTime )
179
+ end
180
+
176
181
it "should return Time for a TIMESTAMP value when within the supported range" do
177
182
@test_result [ 'timestamp_test' ] . class . should eql ( Time )
178
183
@test_result [ 'timestamp_test' ] . strftime ( "%F %T" ) . should eql ( '2010-04-04 11:44:00' )
You can’t perform that action at this time.
0 commit comments