From 0e6c7e7c8caac227a31f1a60dcf83eb1ddc9780c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B0=D1=82=D0=BE=D0=BB=D0=B8=D0=B9=20=D0=A2?= =?UTF-8?q?=D1=83=D1=85=D1=82=D0=B0=D1=80=D0=BE=D0=B2?= Date: Fri, 4 Aug 2023 07:32:38 +0500 Subject: [PATCH] =?UTF-8?q?=D0=9A=D0=BE=D0=BC=D0=BC=D0=B8=D1=82=20=D1=81?= =?UTF-8?q?=20nb?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db.go | 2 +- seadb_test.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/db.go b/db.go index 55900a7..8b31c23 100644 --- a/db.go +++ b/db.go @@ -35,7 +35,7 @@ func deleteImagesDB(db *sqlx.DB, ids []int) error { return nil } -// перемещает картинки в альбом +// перемещает картинки ( список) в альбом func moveImagesDB(db *sqlx.DB, newseria, ids string) error { cmd := "UPDATE pic SET seria = ? WHERE file_id = ?" // fmt.Printf("перемещаю: %v в %s\n", ids, newseria) diff --git a/seadb_test.go b/seadb_test.go index 35cf59d..69ff3e4 100644 --- a/seadb_test.go +++ b/seadb_test.go @@ -12,6 +12,7 @@ import ( var db *sqlx.DB +// Для тестирования используем тестовую БД func openDB() *sqlx.DB { db, err := sqlx.Open("mysql", "itman:X753951x@(xigmanas:3306)/sea-test") if err != nil {