Skip to content

Commit cad4f39

Browse files
committed
Rust: Database name capitalization
1 parent defbbb2 commit cad4f39

File tree

1 file changed

+3
-3
lines changed
  • rust/ql/test/query-tests/security/CWE-089

1 file changed

+3
-3
lines changed

rust/ql/test/query-tests/security/CWE-089/sqlx.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ use sqlx::Executor;
3838
*/
3939

4040
async fn test_sqlx_mysql(url: &str, enable_remote: bool) -> Result<(), sqlx::Error> {
41-
// connect through a MySql connection pool
41+
// connect through a MySQL connection pool
4242
let pool = sqlx::mysql::MySqlPool::connect(url).await?;
4343
let mut conn = pool.acquire().await?;
4444

@@ -88,7 +88,7 @@ async fn test_sqlx_mysql(url: &str, enable_remote: bool) -> Result<(), sqlx::Err
8888
}
8989

9090
async fn test_sqlx_sqlite(url: &str, enable_remote: bool) -> Result<(), sqlx::Error> {
91-
// connect through Sqlite, no connection pool
91+
// connect through SQLite, no connection pool
9292
let mut conn = sqlx::sqlite::SqliteConnection::connect(url).await?;
9393

9494
// construct queries
@@ -160,7 +160,7 @@ async fn test_sqlx_sqlite(url: &str, enable_remote: bool) -> Result<(), sqlx::Er
160160
}
161161

162162
async fn test_sqlx_postgres(url: &str, enable_remote: bool) -> Result<(), sqlx::Error> {
163-
// connect through a PostGres connection pool
163+
// connect through a PostgreSQL connection pool
164164
let pool = sqlx::postgres::PgPool::connect(url).await?;
165165
let mut conn = pool.acquire().await?;
166166

0 commit comments

Comments
 (0)