mirror of https://github.com/jackc/pgx.git
Use named value instead of literal
parent
2b4558fe22
commit
e16749774d
|
@ -26,8 +26,8 @@ type UntypedTextRange struct {
|
|||
func ParseUntypedTextRange(src string) (*UntypedTextRange, error) {
|
||||
utr := &UntypedTextRange{}
|
||||
if src == "empty" {
|
||||
utr.LowerType = 'E'
|
||||
utr.UpperType = 'E'
|
||||
utr.LowerType = Empty
|
||||
utr.UpperType = Empty
|
||||
return utr, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue