about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--db_actions.go4
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)
 	}