diff --git a/Parserv2.cpp b/Parserv2.cpp index 150bab1..427bbdb 100755 --- a/Parserv2.cpp +++ b/Parserv2.cpp @@ -143,6 +143,7 @@ vector closeCMD(vector input){ cout << "\nPassing the following arguments to dbEngine: " << endl; cout << "command :" << input[0] << endl; cout << "relation: " << input[1] << endl; + return input; } vector saveCMD(vector input){ @@ -154,14 +155,26 @@ vector saveCMD(vector input){ cout << "\nPassing the following arguments to dbEngine: " << endl; cout << "command :" << input[0] << endl; cout << "relation: " << input[1] << endl; + return input; } vector updateCMD(vector input){ - // + //UPDATE relation-name SET attribute-name = literal { , attribute-name = literal } WHERE condition } vector deleteCMD(vector input){ - // + //DELETE FROM relation-name WHERE condition + if (input[0] != "DELETE") { + cout << "Error: save keyword is missing." <