From 9dde8663551e479cac788ec0ecc14b1b4d072a49 Mon Sep 17 00:00:00 2001 From: Jon Bonilla Date: Thu, 30 Aug 2012 20:42:49 +0000 Subject: [PATCH] fix sql. thx rfuchs --- db_scripts/diff/10877.up | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db_scripts/diff/10877.up b/db_scripts/diff/10877.up index b1eef194..9036c988 100644 --- a/db_scripts/diff/10877.up +++ b/db_scripts/diff/10877.up @@ -1,4 +1,4 @@ #Fix the unsynced rules default values ALTER TABLE provisioning.voip_peer_rules CHANGE COLUMN callee_pattern callee_pattern VARCHAR(64) DEFAULT ''; -UPDATE provisioning.voip_peer_rules SET callee_pattern='' where callee_pattern=NULL; -UPDATE kamailio.lcr_rule SET request_uri='' where request_uri=NULL; +UPDATE provisioning.voip_peer_rules SET callee_pattern='' where callee_pattern IS NULL; +UPDATE kamailio.lcr_rule SET request_uri='' where request_uri IS NULL;