From ac512a898b2e272adad65912ba03a703c0fd4578 Mon Sep 17 00:00:00 2001 From: Pieter Hollander Date: Wed, 21 Feb 2024 13:23:35 +0100 Subject: [PATCH] Fix syntax error in create_hypertable. --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 6932561..5665eba 100644 --- a/main.go +++ b/main.go @@ -353,7 +353,7 @@ func connectToPostgreSQL(pgConnStr string) error { // Enable TimescaleDB _, err = db.Exec(` CREATE EXTENSION IF NOT EXISTS timescaledb; - SELECT create_hypertable('p1', 'timestamp', if_not_exists => TRUE), migrate_data => TRUE; + SELECT create_hypertable('p1', 'timestamp', if_not_exists => TRUE, migrate_data => TRUE); `) if err != nil { log.Fatal("Error creating TimescaleDB extension:", err)