Minor doc update

This commit is contained in:
Steven Fackler 2013-12-16 22:17:10 -08:00
parent 3b459ca9c6
commit 91f245376f
2 changed files with 4 additions and 4 deletions

View File

@ -46,8 +46,8 @@ fn main() {
};
conn.update("INSERT INTO person (name, time_created, data)
VALUES ($1, $2, $3)",
[&me.name as &ToSql, &me.time_created as &ToSql,
&me.data as &ToSql]);
[&me.name as &ToSql, &me.time_created as &ToSql,
&me.data as &ToSql]);
let stmt = conn.prepare("SELECT id, name, time_created, data FROM person");
for row in stmt.query([]) {

4
lib.rs
View File

@ -38,8 +38,8 @@ fn main() {
};
conn.update("INSERT INTO person (name, time_created, data)
VALUES ($1, $2, $3)",
[&me.name as &ToSql, &me.time_created as &ToSql,
&me.data as &ToSql]);
[&me.name as &ToSql, &me.time_created as &ToSql,
&me.data as &ToSql]);
let stmt = conn.prepare("SELECT id, name, time_created, data FROM person");
for row in stmt.query([]) {