diff --git a/changelog.md b/changelog.md index 00677bb4..ce1d7751 100644 --- a/changelog.md +++ b/changelog.md @@ -12,7 +12,7 @@ - Initial release with support of ndc-spec v0.1.2 (beta) - Support for CLI plugin for Hasura v3 CLI, which allows the CLI to - automatically introspect the database on demand. + introspect the database on demand. - Query explain endpoint has been changed from `/explain` to `/query/explain`. - The default port was changed from 8100 to 8080. diff --git a/crates/cli/src/lib.rs b/crates/cli/src/lib.rs index 0341cf6e..da5f4c3d 100644 --- a/crates/cli/src/lib.rs +++ b/crates/cli/src/lib.rs @@ -205,7 +205,7 @@ async fn update_uri_from_context(context: &Context) -> anyhow::Result<()> { read_config_file_contents(&configuration_file_path).await?; serde_json::from_str(&configuration_file_contents)? }; - if input == ndc_sqlserver::configuration::RawConfiguration::empty() { + if input.mssql_connection_string.is_empty() { if let Some(uri) = &context.uri { input.mssql_connection_string = uri.clone(); } else {