Commit 5d2031e4 authored by Ванин Дмитрий Михайлович's avatar Ванин Дмитрий Михайлович
Browse files

fixfixfix

parent 2eb0892d
No related merge requests found
Showing with 2 additions and 2 deletions
+2 -2
......@@ -51,7 +51,7 @@ func writeInfo(w http.ResponseWriter, r *http.Request) {
return
}
string := strings[0]
str := strings[0]
db, err := sql.Open("mysql", os.Getenv("DB_USER") + ":" + os.Getenv("DB_PASSWORD") + "@tcp(" + os.Getenv("DB_HOST") + ":" + os.Getenv("DB_PORT") + ")/" + os.Getenv("DB_NAME"))
defer db.Close()
......@@ -60,7 +60,7 @@ func writeInfo(w http.ResponseWriter, r *http.Request) {
log.Fatal(err)
}
sql := "INSERT INTO Den(Information) VALUES (" + string + ")"
sql := "INSERT INTO Den(Information) VALUES (" + string(str) + ")"
_, err = db.Exec(sql)
if err != nil {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment