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

Mike Heins <[email protected]>
Newsgroups gmane.comp.web.interchange.cvs
Message-ID <[email protected]>
commit 42cdacf9e5a3d301fa01e0ee4c7a0ed3946289f5
Author: Mike Heins <[email protected]>
Date:   Thu Feb 3 22:32:13 2011 -0500

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

 lib/Vend/Table/DBI.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lib/Vend/Table/DBI.pm b/lib/Vend/Table/DBI.pm
index c3a5b5d..bebb364 100644
--- a/lib/Vend/Table/DBI.pm
+++ b/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 {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.