From 3d6f511b5b500df2865af75016e847d6bc52d8df Mon Sep 17 00:00:00 2001 From: derN3rd Date: Wed, 12 Oct 2022 12:44:44 +0200 Subject: [PATCH] fix timeZone() not working on versions below 21.4 CH Server below 21.4 does not understand the timeZone() function. timezone() works fine through all versions therefore it should be used instead. --- conn_http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conn_http.go b/conn_http.go index da5a92e368..0ca16f7503 100644 --- a/conn_http.go +++ b/conn_http.go @@ -239,7 +239,7 @@ func (h *httpConnect) isBad() bool { } func (h *httpConnect) readTimeZone(ctx context.Context) (*time.Location, error) { - rows, err := h.query(ctx, func(*connect, error) {}, "SELECT timeZone()") + rows, err := h.query(ctx, func(*connect, error) {}, "SELECT timezone()") if err != nil { return nil, err }