summaryrefslogtreecommitdiff
path: root/project2/tablepatch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'project2/tablepatch.cpp')
-rw-r--r--project2/tablepatch.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/project2/tablepatch.cpp b/project2/tablepatch.cpp
index 9ee5165..6f9c62f 100644
--- a/project2/tablepatch.cpp
+++ b/project2/tablepatch.cpp
@@ -37,8 +37,8 @@ TablePatch::patch(const char * where, const char * order)
if (pk.size() == 0) {
throw PatchCheckFailure();
}
- doDeletes(where, order);
- doUpdates(where, order);
+ doDeletes((where && *where) ? where : NULL, order);
+ doUpdates((where && *where) ? where : NULL, order);
doInserts(order);
}