git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@707
c11ca15a-4712-0410-83d8-
924469b57eb5
# todo: use dbGetColNiceHash().
# todo: use dbGetColNiceHash().
- my %hash = &dbGetCol("stats", "nick,counter", "type='cmdstats'".
-# " ORDER BY counter DESC LIMIT 3", 1);
- " ORDER BY counter DESC", 1);
+ my %hash = &sqlSelectColHash("stats", "nick,counter",
+ { type => "cmdstats" }, 1);
+# does ORDER matter when used with a hash?
+# " ORDER BY counter DESC", 1);
if (0) {
foreach (keys %hash) {
if (0) {
foreach (keys %hash) {