Explorar el Código

fix typo in sql query

flashmob hace 6 años
padre
commit
cb550348c4
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      backends/p_guerrilla_db_redis.go

+ 1 - 1
backends/p_guerrilla_db_redis.go

@@ -150,7 +150,7 @@ func (g *GuerrillaDBAndRedisBackend) prepareInsertQuery(rows int, db *sql.DB) *s
 	if g.cache[rows-1] != nil {
 		return g.cache[rows-1]
 	}
-	sqlstr := "INSERT INTO %s " + g.config.Table + "" +
+	sqlstr := "INSERT INTO " + g.config.Table + "" +
 		"(" +
 		"`date`, " +
 		"`to`, " +