diff --git a/README.md b/README.md index 2f8d23c..59d5204 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ fn main() { data: None }; conn.execute("INSERT INTO person (name, time_created, data) - VALUES ($1, $2, $3)", + VALUES (?1, ?2, ?3)", &[&me.name, &me.time_created, &me.data]).unwrap(); let mut stmt = conn.prepare("SELECT id, name, time_created, data FROM person").unwrap(); diff --git a/src/lib.rs b/src/lib.rs index 76c9729..dec53c4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -32,7 +32,7 @@ //! data: None //! }; //! conn.execute("INSERT INTO person (name, time_created, data) -//! VALUES ($1, $2, $3)", +//! VALUES (?1, ?2, ?3)", //! &[&me.name, &me.time_created, &me.data]).unwrap(); //! //! let mut stmt = conn.prepare("SELECT id, name, time_created, data FROM person").unwrap();