diff --git a/DBEngine.cpp b/DBEngine.cpp index 08becc2..208da05 100755 --- a/DBEngine.cpp +++ b/DBEngine.cpp @@ -189,6 +189,10 @@ Relation DBEngine::crossProduct(Relation r1, Relation r2){ for (int i = 0; i < r2.getAttributes().size(); ++i) { new_atts.push_back(r2.getAttributes()[i]); } + + for (int i = 0; i < new_atts.size(); ++i) { + new_atts[i].clearAllValues(); + } //currently all returned relations are called TEMP Relation new_r("TEMP", new_atts); diff --git a/a.out b/a.out index fdcea51..5ff8697 100755 Binary files a/a.out and b/a.out differ