We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Works: $this->db->where('field IS NULL'); $result = $this->get_all();
DOES NOT WORK: $result = $this->where('field', NULL)->get_all(); $result = $this->where('field is', NULL)->get_all(); $result = $this->where('field IS NULL')->get_all(); $result = $this->get_all('field is null');
The text was updated successfully, but these errors were encountered:
You need to make the where clause a custom string like this:
$result = $this->where('fieldName IS NULL',NULL,NULL,FALSE,FALSE,TRUE)->get_all();
Sorry, something went wrong.
it causing serious problem, and generated headaches to me described here #295
No branches or pull requests
Works:
$this->db->where('field IS NULL');
$result = $this->get_all();
DOES NOT WORK:
$result = $this->where('field', NULL)->get_all();
$result = $this->where('field is', NULL)->get_all();
$result = $this->where('field IS NULL')->get_all();
$result = $this->get_all('field is null');
The text was updated successfully, but these errors were encountered: