[Vtigercrm-commits] [vtiger development] #1514: SQL "!= null" isn't equivalent to "IS NOT NULL"

vtiger development vtiger-tickets at vtiger.fosslabs.com
Fri Jul 14 15:48:19 EDT 2006


#1514: SQL "!= null" isn't equivalent to "IS NOT NULL"
-----------------------+----------------------------------------------------
 Reporter:  nokes      |       Owner:  developer
     Type:  defect     |      Status:  new      
 Priority:  major      |   Milestone:  4.2.5    
Component:  vtigercrm  |     Version:  4.2.4rc3 
 Keywords:             |  
-----------------------+----------------------------------------------------
 In /modules/Calendar/appointment.pinc, there are several SQL queries where
 values are compared against NULL using !=

 According to SQL92, "x != NULL" always evaluates to FALSE.

 I think what we want is "x IS NOT NULL", which returns TRUE or FALSE,
 depending on the value of x.

 hence, "!=" should be replaced with "IS NOT" in four places, within SQL
 queries. Patch to be attached.

-- 
Ticket URL: <http://vtiger.fosslabs.com/cgi-bin/trac.cgi/ticket/1514>
vtiger development <http://vtiger.fosslabs.com/>
vtigerCRM


More information about the vtigercrm-commits mailing list