Changed ISNULL(word) to word ISNULL.

This commit is contained in:
Jeremy Fincher 2003-04-11 21:36:25 +00:00
parent 13109d1f96
commit c92386f7cf

View File

@ -204,7 +204,7 @@ class Markov(callbacks.Privmsg, ChannelDBHandler):
channel = privmsgs.getChannel(msg, args) channel = privmsgs.getChannel(msg, args)
db = self.getDb(channel) db = self.getDb(channel)
cursor = db.cursor() cursor = db.cursor()
cursor.execute("""SELECT COUNT(*) FROM follows WHERE ISNULL(word)""") cursor.execute("""SELECT COUNT(*) FROM follows WHERE word ISNULL""")
n = cursor.fetchone()[0] n = cursor.fetchone()[0]
s = 'There are %s lasts in my Markov database for %s' % (n, channel) s = 'There are %s lasts in my Markov database for %s' % (n, channel)
irc.reply(msg, s) irc.reply(msg, s)