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
4 changes: 2 additions & 2 deletions crates/connectors/ndc-postgres/src/schema/mutation/v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pub fn delete_to_procedure(

make_procedure_type(
name.clone(),
Some(description.to_string()),
Some(description.clone()),
arguments,
models::Type::Named {
name: collection_name.as_str().into(),
Expand Down Expand Up @@ -71,7 +71,7 @@ pub fn insert_to_procedure(

make_procedure_type(
name.clone(),
Some(insert.description.to_string()),
Some(insert.description.clone()),
arguments,
models::Type::Named {
name: insert.collection_name.as_str().into(),
Expand Down
6 changes: 3 additions & 3 deletions crates/connectors/ndc-postgres/src/schema/mutation/v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ pub fn delete_to_procedure(

make_procedure_type(
name.clone(),
Some(delete_by_key.description.to_string()),
Some(delete_by_key.description.clone()),
arguments,
models::Type::Named {
name: delete_by_key.collection_name.as_str().into(),
Expand Down Expand Up @@ -173,7 +173,7 @@ pub fn update_to_procedure(
// Make a type for the procedure.
make_procedure_type(
procedure_name.clone(),
Some(update_by_key.description.to_string()),
Some(update_by_key.description.clone()),
arguments,
models::Type::Named {
name: update_by_key.collection_name.as_str().into(),
Expand Down Expand Up @@ -221,7 +221,7 @@ pub fn insert_to_procedure(

make_procedure_type(
name.clone(),
Some(insert.description.to_string()),
Some(insert.description.clone()),
arguments,
models::Type::Named {
name: insert.collection_name.as_str().into(),
Expand Down
4 changes: 2 additions & 2 deletions crates/query-engine/execution/src/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,15 +229,15 @@ fn build_query_with_params<'a>(
if var == sql::helpers::VARIABLES_OBJECT_PLACEHOLDER =>
{
match &variables {
None => Err(Error::Query(QueryError::VariableNotFound(var.to_string()))),
None => Err(Error::Query(QueryError::VariableNotFound(var.clone()))),
Some(variables) => {
let vars = variables_to_json(variables)?;
Ok(sqlx_query.bind(vars))
}
}
}
sql::string::Param::Variable(var) => {
Err(Error::Query(QueryError::VariableNotFound(var.to_string())))
Err(Error::Query(QueryError::VariableNotFound(var.clone())))
}
})
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ pub(crate) fn type_to_ast_scalar_type_name(
Ok(if let Some(schema_name) = type_info.schema_name() {
sql::ast::ScalarTypeName::Qualified {
type_name,
schema_name: sql::ast::SchemaName(schema_name.to_string()),
schema_name: sql::ast::SchemaName(schema_name.clone()),
}
} else {
sql::ast::ScalarTypeName::Unqualified(type_name)
Expand Down
18 changes: 9 additions & 9 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[toolchain]
channel = "1.90.0"
channel = "1.91.1"
profile = "default" # see https://rust-lang.github.io/rustup/concepts/profiles.html
components = ["rust-analyzer", "rust-src"] # see https://rust-lang.github.io/rustup/concepts/components.html
Loading