public function isNull($column, $combine = 'AND') { $this->predicates[] = array('format' => '%1 IS NULL', 'values' => array($column), 'combine' => $combine == 'OR' ? 'OR' : 'AND'); return $this; }
public function testIsNull() { $p = new Predicate(Sql::factory(Db::factory('Sqlite', array('database' => __DIR__ . '/../tmp/test.sqlite')), 'users')); $p->isNull('email'); $this->assertEquals('("email" IS NULL)', (string) $p); }