File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1515package sql
1616
1717import (
18+ "context"
1819 "fmt"
1920)
2021
@@ -130,7 +131,7 @@ var _ MySQLRangeCut = Above{}
130131// Compare implements MySQLRangeCut.
131132func (a Above ) Compare (c MySQLRangeCut , typ Type ) (int , error ) {
132133 //TODO: Add context parameter to MySQLRangeCut.Compare
133- ctx := NewEmptyContext ()
134+ ctx := context . Background ()
134135 switch c := c .(type ) {
135136 case AboveAll :
136137 return - 1 , nil
@@ -207,7 +208,7 @@ var _ MySQLRangeCut = Below{}
207208// Compare implements MySQLRangeCut.
208209func (b Below ) Compare (c MySQLRangeCut , typ Type ) (int , error ) {
209210 //TODO: Add context parameter to MySQLRangeCut.Compare
210- ctx := NewEmptyContext ()
211+ ctx := context . Background ()
211212 switch c := c .(type ) {
212213 case AboveAll :
213214 return - 1 , nil
You can’t perform that action at this time.
0 commit comments