Commit 87dc389
authored
Check whether column is numeric along with unsigned check (#163)
Attempt to fix #159. It seems there are cases when `API.isunsigned` will
return true for a timestamp column; this is probably due to some kind of
database or column setting when the table was created, but nonetheless,
it causes issues because if `API.isunsigned`, then we try to call
`unsigned(T)`, which isn't defined for `DateTime`. As opposed to
pirating that definition in MySQL.jl, here we attempt to also check the
`NUM_FLAG`, which should tell us whether the field is numeric or not and
hopefully avoid ever seeing `API.isunsigned` for timestamp columns.1 parent 731f39c commit 87dc389
2 files changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| 209 | + | |
209 | 210 | | |
210 | 211 | | |
211 | 212 | | |
| |||
0 commit comments