diff options
author | Emile <hanemile@protonmail.com> | 2019-03-06 20:10:56 +0100 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2019-03-06 20:10:56 +0100 |
commit | 33c5bb6c383a54c6abf4946567d609bcdb2fb18e (patch) | |
tree | e9fecbf4840899cf346eb46d1c1350f4dc36a2a1 | |
parent | 4e0e07d64e28520e6fa9ed5595f0839cb02f2095 (diff) |
changed the request type
-rw-r--r-- | db_actions.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/db_actions.go b/db_actions.go index 6d3fe0f..a51bcfc 100644 --- a/db_actions.go +++ b/db_actions.go @@ -1289,7 +1289,7 @@ func InitStarsTable(db *sql.DB) { m numeric ) ` - err := db.QueryRow(query) + _, err := db.Exec(query) if err != nil { log.Fatalf("[ E ] InitNodesTable query: %v \n\t\t\tquery: %s\n", err, query) } @@ -1310,7 +1310,7 @@ func InitNodesTable(db *sql.DB) { subnodes bigint[] NOT NULL ) ` - err := db.QueryRow(query) + _, err := db.Exec(query) if err != nil { log.Fatalf("[ E ] InitNodesTable query: %v \n\t\t\tquery: %s\n", err, query) } |