Changed word=NULL to ISNULL(word)

This commit is contained in:
Jeremy Fincher 2003-04-11 21:33:23 +00:00
parent 62a833f29a
commit 13109d1f96

View File

@ -204,9 +204,9 @@ 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 word=NULL""") cursor.execute("""SELECT COUNT(*) FROM follows WHERE ISNULL(word)""")
n = cursor.fetchone()[0] n = cursor.fetchone()[0]
s = 'There are %s follows 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)