Debug print

This commit is contained in:
Billy Chan 2021-11-09 16:54:29 +08:00
parent ec637b26a0
commit c1fae1bc86
No known key found for this signature in database
GPG Key ID: A2D690CAC7DF3CC7
2 changed files with 4 additions and 0 deletions

View File

@ -230,5 +230,7 @@ async fn parse_support_returning(pool: &MySqlPool) -> Result<(String, bool), DbE
// Supported if it's MariaDB with version 10.5.0 or after
ver_major >= 10 && ver_minor >= 5
};
debug_print!("db_version: {}", version);
debug_print!("db_support_returning: {}", support_returning);
Ok((version, support_returning))
}

View File

@ -227,5 +227,7 @@ async fn parse_support_returning(pool: &SqlitePool) -> Result<(String, bool), Db
let ver_minor = parse_captures!(2);
// Supported if it's version 3.35.0 (2021-03-12) or after
let support_returning = ver_major >= 3 && ver_minor >= 35;
debug_print!("db_version: {}", version);
debug_print!("db_support_returning: {}", support_returning);
Ok((version, support_returning))
}