Skip to content

Commit

Permalink
l
Browse files Browse the repository at this point in the history
Signed-off-by: zhongzc <zhongzc_arch@outlook.com>
  • Loading branch information
zhongzc committed Apr 17, 2020
1 parent 161cecc commit 843f2fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/tidb_query_datatype/src/codec/data_type/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ impl AsMySQLBool for Int {
impl AsMySQLBool for Real {
#[inline]
fn as_mysql_bool(&self, _context: &mut EvalContext) -> Result<bool> {
Ok(self.into_inner() != 0.0)
Ok(self.into_inner() != 0f64)
}
}

Expand Down

0 comments on commit 843f2fb

Please sign in to comment.