Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

correct spelling of MySqlConnectOptions::no_engine_substitution() #3421

Merged
merged 6 commits into from
Aug 12, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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
2 changes: 1 addition & 1 deletion sqlx-mysql/src/options/connect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ impl ConnectOptions for MySqlConnectOptions {
if self.pipes_as_concat {
sql_mode.push(r#"PIPES_AS_CONCAT"#);
}
if self.no_engine_subsitution {
if self.no_engine_substitution {
sql_mode.push(r#"NO_ENGINE_SUBSTITUTION"#);
}

Expand Down
8 changes: 4 additions & 4 deletions sqlx-mysql/src/options/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ pub struct MySqlConnectOptions {
pub(crate) log_settings: LogSettings,
pub(crate) pipes_as_concat: bool,
pub(crate) enable_cleartext_plugin: bool,
pub(crate) no_engine_subsitution: bool,
pub(crate) no_engine_substitution: bool,
pub(crate) timezone: Option<String>,
pub(crate) set_names: bool,
}
Expand Down Expand Up @@ -108,7 +108,7 @@ impl MySqlConnectOptions {
log_settings: Default::default(),
pipes_as_concat: true,
enable_cleartext_plugin: false,
no_engine_subsitution: true,
no_engine_substitution: true,
timezone: Some(String::from("+00:00")),
set_names: true,
}
Expand Down Expand Up @@ -350,8 +350,8 @@ impl MySqlConnectOptions {
/// substitution).
///
/// <https://mariadb.com/kb/en/sql-mode/>
pub fn no_engine_subsitution(mut self, flag_val: bool) -> Self {
self.no_engine_subsitution = flag_val;
pub fn no_engine_substitution(mut self, flag_val: bool) -> Self {
abonander marked this conversation as resolved.
Show resolved Hide resolved
self.no_engine_substitution = flag_val;
self
}

Expand Down