Forráskód Böngészése

one debug mesage commented out (it was screwing up the terminal when printing
BLOBs)

Bogdan-Andrei Iancu 22 éve
szülő
commit
929ce3ccbd
1 módosított fájl, 3 hozzáadás és 1 törlés
  1. 3 1
      modules/db_mysql/dbase.c

+ 3 - 1
modules/db_mysql/dbase.c

@@ -144,7 +144,9 @@ static inline int submit_query(db_con_t* _h, const char* _s)
 		return -1;
 	}
 #endif
-	DBG("submit_query(): %s\n", _s);
+	/* screws up the terminal when the query contains a BLOB :-( (by bogdan)
+	 * DBG("submit_query(): %s\n", _s);
+	 */
 	if (mysql_query(CON_CONNECTION(_h), _s)) {
 		LOG(L_ERR, "submit_query(): %s\n", mysql_error(CON_CONNECTION(_h)));
 		return -2;