Use $input instead of $value in INSERT statements

This commit is contained in:
Tobie Morgan Hitchcock 2023-01-01 16:16:58 +00:00
parent b8c5f23d56
commit 916805b9cc

View file

@ -65,7 +65,7 @@ impl<'a> Document<'a> {
let mut ctx = Context::new(ctx); let mut ctx = Context::new(ctx);
// Add insertable value // Add insertable value
if let Workable::Insert(value) = &self.extras { if let Workable::Insert(value) = &self.extras {
ctx.add_value("value".into(), value); ctx.add_value("input".into(), value);
} }
// Process ON DUPLICATE KEY clause // Process ON DUPLICATE KEY clause
for x in x.iter() { for x in x.iter() {