Commit ba8048d
authored
Improve handing of DateTime values for 1970-01-01 (#177)
Fixes #175. As @david-macmahon pointed out, it was a bit strange that we
were special-casing the binding of MYSQL_TIME structs when converting
from DateTime. The mysql DATETIME type specifically supports dates
between 1000-01-01 to 9999-12-31 23:59:59, so there's no reason we
should be special-casing 1970-01-01.1 parent feffdc7 commit ba8048d
2 files changed
+12
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
147 | 141 | | |
148 | 142 | | |
149 | 143 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
235 | 244 | | |
236 | 245 | | |
237 | 246 | | |
| |||
0 commit comments