Browse files

Use proper write ($WDBI) handle for deleting a record.

  • Loading branch information...
1 parent 0ff8004 commit 42cdacf9e5a3d301fa01e0ee4c7a0ed3946289f5 Mike Heins committed Feb 3, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Vend/Table/DBI.pm
View
2 lib/Vend/Table/DBI.pm
@@ -1744,7 +1744,7 @@ sub delete_record {
## Rely on DBI to quote
$key = $s->[$WDBI]->quote($key, $s->[$KEY]);
- $s->[$DBI]->do("delete from $s->[$TABLE] where $s->[$KEY] = $key");
+ $s->[$WDBI]->do("delete from $s->[$TABLE] where $s->[$KEY] = $key");
}
sub fields_index {

0 comments on commit 42cdacf

Please sign in to comment.