Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/fxp/src/fixed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ impl<const P0: usize, const S0: usize> Fixed<P0, S0> {
} else {
Fixed::try_new_with_exponent(
I256::from_product(self.0, pow10(shift_left)).narrowing_div(other.0)?,
S0.saturating_sub(S1 + S2) as i32,
-(S0.saturating_sub(S1 + S2) as i32),
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ static void compileAndCheck(File file) throws SQLException, IOException, Interru
messages.print();
throw new RuntimeException("Error during compilation");
}
BaseSQLTests.compileAndCheckRust(true);
// BaseSQLTests.compileAndCheckRust(true);
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -873,4 +873,16 @@ public void issue5899c() {
2020-01-01 | 1
2020-04-01 | 1""");
}

@Test
public void issue5946() {
var ccs = this.getCCS("""
CREATE TABLE test ("tt" DECIMAL(38,10));
create view ff as select tt, tt / 100.0 as tt2 from test;""");
ccs.stepWeightOne("INSERT INTO test VALUES (36)", """
ff | ff2
----------
36 | 0.36""");
}

}