diff --git a/rsfbclient-rust/src/wire.rs b/rsfbclient-rust/src/wire.rs index 82fe731..5ad3033 100644 --- a/rsfbclient-rust/src/wire.rs +++ b/rsfbclient-rust/src/wire.rs @@ -646,7 +646,7 @@ pub fn parse_sql_response( } } - ibase::SQL_BLOB if var.sqlsubtype == 0 || var.sqlsubtype == 1 => { + ibase::SQL_BLOB if var.sqlsubtype <= 1 => { let id = resp.get_u64()?; let null = read_null(resp, col_index)?; diff --git a/rsfbclient-rust/src/xsqlda.rs b/rsfbclient-rust/src/xsqlda.rs index a22f1f6..ffdffd8 100644 --- a/rsfbclient-rust/src/xsqlda.rs +++ b/rsfbclient-rust/src/xsqlda.rs @@ -96,7 +96,7 @@ impl XSqlVar { self.sqltype = ibase::SQL_TIMESTAMP as i16 + 1; } - ibase::SQL_BLOB if (sqlsubtype <= 1) => { + ibase::SQL_BLOB if sqlsubtype <= 1 => { self.sqltype = ibase::SQL_BLOB as i16 + 1; }