We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d60ee0 commit d48af91Copy full SHA for d48af91
1 file changed
diesel/src/mysql/connection/stmt/iterator.rs
@@ -77,11 +77,7 @@ impl<'a> Row<Mysql> for MysqlRow<'a> {
77
.stmt
78
.metadata()
79
.expect("Failed to get result metadata from the mysql backend");
80
- let field = if self.col_idx == 0 {
81
- metadata.fields()[0]
82
- } else {
83
- metadata.fields()[self.col_idx - 1]
84
- };
+ let field = metadata.fields()[self.col_idx];
85
unsafe {
86
Some(CStr::from_ptr(field.name).to_str().expect(
87
"Diesel assumes that your mysql database uses the \
0 commit comments