Searched refs:insert_stmt (Results 1 – 1 of 1) sorted by relevance
1217 let mut insert_stmt = db.prepare("INSERT INTO foo(x) VALUES(?)").unwrap(); in test_prepare_execute() localVariable1218 assert_eq!(insert_stmt.execute(&[1i32]).unwrap(), 1); in test_prepare_execute()1219 assert_eq!(insert_stmt.execute(&[2i32]).unwrap(), 1); in test_prepare_execute()1220 assert_eq!(insert_stmt.execute(&[3i32]).unwrap(), 1); in test_prepare_execute()1222 assert_eq!(insert_stmt.execute(&["hello".to_string()]).unwrap(), 1); in test_prepare_execute()1223 assert_eq!(insert_stmt.execute(&["goodbye".to_string()]).unwrap(), 1); in test_prepare_execute()1224 assert_eq!(insert_stmt.execute(&[types::Null]).unwrap(), 1); in test_prepare_execute()1237 let mut insert_stmt = db.prepare("INSERT INTO foo(x) VALUES(?)").unwrap(); in test_prepare_query() localVariable1238 assert_eq!(insert_stmt.execute(&[1i32]).unwrap(), 1); in test_prepare_query()1239 assert_eq!(insert_stmt.execute(&[2i32]).unwrap(), 1); in test_prepare_query()[all …]