From bd6ed7e66acc89e746ffc542d5f6bd299707c88e Mon Sep 17 00:00:00 2001 From: Radu Ioan Fericean Date: Wed, 30 Jul 2014 19:27:44 +0300 Subject: [PATCH] sql syntax fix --- engine/storage_sql.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/storage_sql.go b/engine/storage_sql.go index 292da8893..9373d60d0 100644 --- a/engine/storage_sql.go +++ b/engine/storage_sql.go @@ -1332,7 +1332,7 @@ func (self *SQLStorage) GetTpActions(tpid, tag string) (map[string][]*utils.TPAc func (self *SQLStorage) GetTpActionTriggers(tpid, tag string) (map[string][]*utils.TPActionTrigger, error) { ats := make(map[string][]*utils.TPActionTrigger) - q := fmt.Sprintf("SELECT tpid,id,balance_type,direction,threshold_type,threshold_value,recurrent,min_sleep, ,destination_id, balance_weight, balance_expiration_time, balance_rating_subject, balance_expiration_time, balance_shared_group, min_queued_items, actions_id, weight FROM %s WHERE tpid='%s'", + q := fmt.Sprintf("SELECT tpid,id,balance_type,direction,threshold_type,threshold_value,recurrent,min_sleep,destination_id, balance_weight, balance_expiration_time, balance_rating_subject, balance_expiration_time, balance_shared_group, min_queued_items, actions_id, weight FROM %s WHERE tpid='%s'", utils.TBL_TP_ACTION_TRIGGERS, tpid) if tag != "" { q += fmt.Sprintf(" AND id='%s'", tag)