We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d87afb0 commit 06c128fCopy full SHA for 06c128f
crates/gitql-parser/src/parse_cast.rs
@@ -84,6 +84,10 @@ fn cast_expression_or_error(
84
85
// Check if it's supported to cast this value to result type, just return CastExpr
86
let value_type: Box<dyn DataType> = expr.expr_type();
87
+ if value_type.equals(&target_type) {
88
+ return Ok(expr);
89
+ }
90
+
91
let value_expected_types = value_type.can_perform_explicit_cast_op_to();
92
if value_expected_types.contains(&target_type) {
93
return Ok(Box::new(CastExpr {
0 commit comments