Skip to content

Commit 02d5d63

Browse files
Merge pull request #48 from vdice/fix/postgres-v3-published-column
fix(examples/postgres-v3): update column name
2 parents daa9413 + 09bb4fe commit 02d5d63

File tree

1 file changed

+1
-1
lines changed
  • examples/postgres-v3/src

1 file changed

+1
-1
lines changed

examples/postgres-v3/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ fn write(_req: Request<()>) -> Result<Response<String>> {
126126
let conn = pg3::Connection::open(&address)?;
127127

128128
let sql =
129-
"INSERT INTO articletest (title, content, authorname, published) VALUES ('aaa', 'bbb', 'ccc', '2024-01-01')";
129+
"INSERT INTO articletest (title, content, authorname, publisheddate) VALUES ('aaa', 'bbb', 'ccc', '2024-01-01')";
130130
let nrow_executed = conn.execute(sql, &[])?;
131131

132132
println!("nrow_executed: {}", nrow_executed);

0 commit comments

Comments
 (0)