Skip to content

Commit 7a43396

Browse files
authored
Merge pull request #4838 from weiznich/revert/4671
Revert "Fix print-schema crash with mariadb client library"
2 parents bf22cc9 + f5cc15e commit 7a43396

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

diesel/src/mysql/connection/bind.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -406,12 +406,6 @@ impl BindData {
406406
} else {
407407
let data = self.bytes?;
408408
let tpe = (self.tpe, self.flags).into();
409-
// On some distributions, the mariadb client library returns length 0 for NULL fields of type DECIMAL
410-
// instead of using is_null for unknown reasons
411-
if self.tpe == self::ffi::enum_field_types::MYSQL_TYPE_LONGLONG && self.length == 0 {
412-
return None;
413-
}
414-
415409
let slice = unsafe {
416410
// We know that this points to a slice and the pointer is not null at this
417411
// location

0 commit comments

Comments
 (0)