Skip to content

Commit 09bb4fe

Browse files
committed
fix(examples/postgres-v3): update column name
Signed-off-by: Vaughn Dice <[email protected]>
1 parent b6b371b commit 09bb4fe

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)