Skip to content

Commit

Permalink
Fix compilation error with Crystal nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
ellmetha committed Jan 10, 2024
1 parent 3009d71 commit 8fd5954
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/marten/db/query/sql/predicate/base.cr
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ module Marten
connection.operator_for(self.class.predicate_name) % "%s"
end

private def sql_right_operand_param(_connection)
private def sql_right_operand_param(_connection) : ::DB::Any
@left_operand.to_db(@right_operand.as(Field::Any))
end
end
Expand Down
2 changes: 1 addition & 1 deletion src/marten/db/query/sql/predicate_node.cr
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ module Marten

def to_sql(connection : Connection::Base)
sql_parts = [] of String
sql_params = [] of Field::Any
sql_params = [] of ::DB::Any

@predicates.each do |predicate|
predicate_sql, predicate_params = predicate.to_sql(connection)
Expand Down

0 comments on commit 8fd5954

Please sign in to comment.