Skip to content

Commit 37fc9ec

Browse files
committed
Fixed update and delete commands to accept records
1 parent f9a136c commit 37fc9ec

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/src/main/java/com/orientechnologies/orient/console/OConsoleDatabaseApp.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -504,15 +504,15 @@ public void createEdge(@ConsoleParameter(name = "command-text", description = "T
504504

505505
@ConsoleCommand(splitInWords = false, description = "Update records in the database")
506506
public void update(@ConsoleParameter(name = "command-text", description = "The command text to execute") String iCommandText) {
507-
sqlCommand("update", iCommandText, "\nUpdated %d record(s) in %f sec(s).\n", true);
507+
sqlCommand("update", iCommandText, "\nUpdated record(s) '%s' in %f sec(s).\n", true);
508508
updateDatabaseInfo();
509509
currentDatabase.getLevel1Cache().invalidate();
510510
currentDatabase.getLevel2Cache().clear();
511511
}
512512

513513
@ConsoleCommand(splitInWords = false, description = "Delete records from the database")
514514
public void delete(@ConsoleParameter(name = "command-text", description = "The command text to execute") String iCommandText) {
515-
sqlCommand("delete", iCommandText, "\nDelete %d record(s) in %f sec(s).\n", true);
515+
sqlCommand("delete", iCommandText, "\nDelete record(s) '%s' in %f sec(s).\n", true);
516516
updateDatabaseInfo();
517517
currentDatabase.getLevel1Cache().invalidate();
518518
currentDatabase.getLevel2Cache().clear();

0 commit comments

Comments
 (0)