From 2ea94cf89cf6a84e380bf261aaba176d7522cbb1 Mon Sep 17 00:00:00 2001 From: prrao87 Date: Tue, 23 Apr 2024 09:19:55 -0400 Subject: [PATCH] Fix getOutputMsg in db extensions --- src/processor/operator/simple/attach_database.cpp | 2 +- src/processor/operator/simple/detach_database.cpp | 2 +- src/processor/operator/simple/export_db.cpp | 2 +- src/processor/operator/simple/import_db.cpp | 2 +- src/processor/operator/simple/use_database.cpp | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/processor/operator/simple/attach_database.cpp b/src/processor/operator/simple/attach_database.cpp index ca0852e817..3331ac741d 100644 --- a/src/processor/operator/simple/attach_database.cpp +++ b/src/processor/operator/simple/attach_database.cpp @@ -18,7 +18,7 @@ void AttachDatabase::executeInternal(ExecutionContext* context) { } std::string AttachDatabase::getOutputMsg() { - return "Attach database successfully."; + return "Attached database successfully."; } } // namespace processor diff --git a/src/processor/operator/simple/detach_database.cpp b/src/processor/operator/simple/detach_database.cpp index f3a3afc656..c4def8fdc6 100644 --- a/src/processor/operator/simple/detach_database.cpp +++ b/src/processor/operator/simple/detach_database.cpp @@ -12,7 +12,7 @@ void DetachDatabase::executeInternal(kuzu::processor::ExecutionContext* context) } std::string DetachDatabase::getOutputMsg() { - return "Detach database successfully."; + return "Detached database successfully."; } } // namespace processor diff --git a/src/processor/operator/simple/export_db.cpp b/src/processor/operator/simple/export_db.cpp index d1c193f926..e86f632a7c 100644 --- a/src/processor/operator/simple/export_db.cpp +++ b/src/processor/operator/simple/export_db.cpp @@ -99,7 +99,7 @@ void ExportDB::executeInternal(ExecutionContext* context) { } std::string ExportDB::getOutputMsg() { - return "Export database successfully." + extraMsg; + return "Exported database successfully." + extraMsg; } } // namespace processor diff --git a/src/processor/operator/simple/import_db.cpp b/src/processor/operator/simple/import_db.cpp index 701ca30bb3..f8a9866779 100644 --- a/src/processor/operator/simple/import_db.cpp +++ b/src/processor/operator/simple/import_db.cpp @@ -14,7 +14,7 @@ void ImportDB::executeInternal(ExecutionContext* context) { } std::string ImportDB::getOutputMsg() { - return "Import database successfully."; + return "Imported database successfully."; } } // namespace processor diff --git a/src/processor/operator/simple/use_database.cpp b/src/processor/operator/simple/use_database.cpp index adcd221683..65f8385799 100644 --- a/src/processor/operator/simple/use_database.cpp +++ b/src/processor/operator/simple/use_database.cpp @@ -11,7 +11,7 @@ void UseDatabase::executeInternal(kuzu::processor::ExecutionContext* context) { } std::string UseDatabase::getOutputMsg() { - return "Use database successfully."; + return "Used database successfully."; } } // namespace processor