Bug Description
although the feature flag regexp is enabled, query_as! it doesn't detect it and I get error returned from database: (code: 1) no such function: REGEXP
Minimal Reproduction
pub async fn get_notes(db: SqlitePool) -> Result<Vec<Note>, _> {
let notes = sqlx::query_as!(
Note,
r#"SELECT
text
FROM
notes
WHERE text REGEXP '(foo|bar)'"#
)
.fetch_all(&self.db)
.await?;
Ok(notes)
}
Info
- SQLx version: 0.7.3
- SQLx features enabled: ["runtime-tokio", "sqlite", "json", "regexp"]
- Database server and version: SQLite 3.42.0
- Operating system: Gnu/Linux
rustc --version: 3.42.0
Bug Description
although the feature flag
regexpis enabled, query_as! it doesn't detect it and I geterror returned from database: (code: 1) no such function: REGEXPMinimal Reproduction
Info
rustc --version: 3.42.0