We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4973ae5 commit 9f99a8fCopy full SHA for 9f99a8f
sqlx-macros/src/query/mod.rs
@@ -37,7 +37,7 @@ pub fn expand_input(input: QueryMacroInput) -> crate::Result<TokenStream> {
37
// if `dotenv` wasn't initialized by the above we make sure to do it here
38
match (
39
dotenv::var("SQLX_OFFLINE")
40
- .map(|s| s.to_lowercase() == "true")
+ .map(|s| s.eq_ignore_ascii_case("true") || s == "1")
41
.unwrap_or(false),
42
dotenv::var("DATABASE_URL"),
43
) {
0 commit comments