From 3cd070aa9812729768fce8fcf8b7fad74d9f5d1c Mon Sep 17 00:00:00 2001 From: Oliver Tan Date: Thu, 19 May 2022 09:50:33 -0400 Subject: [PATCH] sql: fix typo in warning on using DateStyle/IntervalStyle Release note (sql change): Fixed a small typo when using DateStyle and IntervalStyle. --- pkg/sql/vars.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/sql/vars.go b/pkg/sql/vars.go index 811eb824b066..13a919a95a21 100644 --- a/pkg/sql/vars.go +++ b/pkg/sql/vars.go @@ -334,7 +334,7 @@ var varGen = map[string]sessionVar{ "Setting DateStyle changes the volatility of timestamp/timestamptz/date::string "+ "and string::timestamp/timestamptz/date/time/timetz casts from immutable to stable. "+ "No computed columns, partial indexes, partitions and check constraints can "+ - "use this casts. "+ + "use these casts. "+ "Use to_char_with_style or parse_{timestamp,timestamptz,date,time,timetz} "+ "instead if you need these casts to work in the aforementioned cases.", ) @@ -973,7 +973,7 @@ var varGen = map[string]sessionVar{ ), "Setting IntervalStyle changes the volatility of string::interval or interval::string "+ "casts from immutable to stable. No computed columns, partial indexes, partitions "+ - "and check constraints can use this casts. "+ + "and check constraints can use these casts. "+ "Use to_char_with_style or parse_interval instead if you need these casts to work "+ "in the aforementioned cases.", )