Created
April 4, 2024 15:58
-
-
Save BSierakowski/31d648b57e1ff42cb4850edc16985db5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
statuses_and_descriptions = ActiveRecord::Base.sanitize_sql_array([UPDATE_CONTACT_STATUS_AND_DESCRIPTION_SQL, { | |
team_id:, hs_object_id: hs_object_id.to_s | |
}]) | |
ActiveRecord::Base.connection.exec_query(statuses_and_descriptions) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yeah, that works for parameters in a Hash:
But what I'm actually trying to do is get the query for one that I use with
select_all
, which would look like this:But sanitize_sql_array doesn't work with the style of parameters that
select_all
requires: