Revision
15858
Author
anthm
Date
2009-12-09 10:06:30 -0600 (Wed, 09 Dec 2009)

Log Message

hide printing of warning for duplicate type errs, the caller still gets it and may print it too

Modified Paths

Diff

Modified: freeswitch/trunk/src/switch_core_sqldb.c (15857 => 15858)


--- freeswitch/trunk/src/switch_core_sqldb.c	2009-12-09 15:52:35 UTC (rev 15857)
+++ freeswitch/trunk/src/switch_core_sqldb.c	2009-12-09 16:06:30 UTC (rev 15858)
@@ -388,7 +388,7 @@
 	}
 
 	if (errmsg) {
-		if (!switch_stristr("already exists", errmsg)) {
+		if (!switch_stristr("already exists", errmsg) && !switch_stristr("duplicate key name", errmsg)) {
 			switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "SQL ERR [%s]\n%s\n", errmsg, sql);
 		}
 		if (err) {