From 0882b2be016d2dfdd6b65f67d8fd5e6de2b9123c Mon Sep 17 00:00:00 2001 From: thindil Date: Wed, 3 Jan 2024 04:57:41 +0000 Subject: [PATCH] fix: reading aliases from database when asking for their name FossilOrigin-Name: 738a7171f36d72b487cb49f721353fd6e025299d7cab7e8702884c269a5cb0a7 --- src/input.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input.nim b/src/input.nim index 9c0c8f00..000fa61e 100644 --- a/src/input.nim +++ b/src/input.nim @@ -337,7 +337,7 @@ proc askForName*[T](db; action, namesType: string; name: var T) {.sideEffect, elif names is seq[Option]: db.rawSelect(qry = "SELECT * FROM options WHERE readonly=0 ORDER BY option ASC", objs = names) - elif names in seq[Alias]: + elif names is seq[Alias]: db.rawSelect(qry = "SELECT * FROM aliases ORDER BY id ASC", objs = names) var