From dc2c8293e904b6121371abc0203824881b8c3ad7 Mon Sep 17 00:00:00 2001 From: Simon Madsen Date: Wed, 10 Aug 2022 15:31:09 +0200 Subject: [PATCH] remove PIPES_AS_CONCAT from sql_mode --- sqlx-core/src/mysql/options/connect.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sqlx-core/src/mysql/options/connect.rs b/sqlx-core/src/mysql/options/connect.rs index e722924c9b..9eac843ab3 100644 --- a/sqlx-core/src/mysql/options/connect.rs +++ b/sqlx-core/src/mysql/options/connect.rs @@ -42,7 +42,9 @@ impl ConnectOptions for MySqlConnectOptions { // https://mathiasbynens.be/notes/mysql-utf8mb4 let mut options = String::new(); - options.push_str(r#"SET sql_mode=(SELECT CONCAT(@@sql_mode, ',PIPES_AS_CONCAT,NO_ENGINE_SUBSTITUTION')),"#); + options.push_str( + r#"SET sql_mode=(SELECT CONCAT(@@sql_mode, ',NO_ENGINE_SUBSTITUTION')),"#, + ); options.push_str(r#"time_zone='+00:00',"#); options.push_str(&format!( r#"NAMES {} COLLATE {};"#,