fixed sql != to work in conjunction with other things

This commit is contained in:
Komяpa 2010-10-19 20:14:37 +03:00
parent f02aab22ef
commit ef76582afc

View file

@ -80,7 +80,7 @@ class Condition:
if t == 'eq':
return params[0], '"%s" = \'%s\''%(params[0], params[1])
if t == 'ne':
return params[0], 'not("%s" = \'%s\')'%(params[0], params[1])
return params[0], '("%s" != \'%s\' or %s IS NULL)'%(params[0], params[1],params[0])
if t == 'regex':
return params[0], '"%s" IS NOT NULL'%(params[0])
if t == 'true':