Handle raw string literal

This commit is contained in:
gwenn
2023-12-23 12:10:36 +01:00
parent 1e73859eb3
commit 33b5ea3c43
3 changed files with 16 additions and 39 deletions

View File

@@ -21,19 +21,19 @@ fn test_literal() -> Result {
}
#[test]
fn test_no_placeholder() -> Result {
fn test_no_placeholder() {
let _stmt = Stmt;
__bind!(_stmt "SELECT 1");
Ok(())
}
#[test]
fn test_raw_string() {
let _stmt = Stmt;
__bind!(_stmt r"SELECT 1");
__bind!(_stmt r#"SELECT 1"#);
}
/* FIXME
#[test]
fn test_raw_string() {
let stmt = ();
__bind!(stmt r#"SELECT 1"#);
}
#[test]
fn test_const() {
const SQL: &str = "SELECT 1";