Skip to content

Commit

Permalink
Merge pull request #56813 from rafiss/backport20.2-56662
Browse files Browse the repository at this point in the history
release-20.2: sql: handle bool values for compat-only session vars
  • Loading branch information
rafiss authored Nov 17, 2020
2 parents ed6007b + de4e510 commit 9a2605d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkg/sql/logictest/testdata/logic_test/set
Original file line number Diff line number Diff line change
Expand Up @@ -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'
1 change: 1 addition & 0 deletions pkg/sql/vars.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}
}

Expand Down

0 comments on commit 9a2605d

Please sign in to comment.