mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-23 00:39:20 +08:00
Fix issue #177
This commit is contained in:
parent
bf8c495b69
commit
a7d27098b7
@ -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();
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user