Commit b81ec1c
Fix print-schema crash with mariadb client library
In certain Linux distributions, the MariaDB client library incorrectly
returns a length of 0 for NULL Decimal fields, rather than utilizing the
is_null flag as expected.
diesel print-schema fails in this case with
"Failed to execute a database query: Error deserializing field
'character_maximum_length': could not convert slice to array".
This patch introduces an additional check to handle this specific case.1 parent 2da8809 commit b81ec1c
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
410 | 410 | | |
411 | 411 | | |
412 | 412 | | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
413 | 419 | | |
414 | 420 | | |
415 | 421 | | |
| |||
0 commit comments