diff --git a/pkg/sql/logictest/testdata/logic_test/set b/pkg/sql/logictest/testdata/logic_test/set index 2dd650731bf5..f0f53699de22 100644 --- a/pkg/sql/logictest/testdata/logic_test/set +++ b/pkg/sql/logictest/testdata/logic_test/set @@ -424,3 +424,12 @@ SET TRANSACTION DEFERRABLE statement ok rollback + +statement ok +SET standard_conforming_strings=true + +statement ok +SET standard_conforming_strings='true' + +statement ok +SET standard_conforming_strings='on' diff --git a/pkg/sql/vars.go b/pkg/sql/vars.go index 9695b93a9f6f..2c3f86deb20e 100644 --- a/pkg/sql/vars.go +++ b/pkg/sql/vars.go @@ -1234,6 +1234,7 @@ func makeCompatBoolVar(varName string, displayValue, anyValAllowed bool) session return err }, GlobalDefault: func(sv *settings.Values) string { return displayValStr }, + GetStringVal: makePostgresBoolGetStringValFn(varName), } }