Skip to content

Commit

Permalink
fix needsEscape array size
Browse files Browse the repository at this point in the history
  • Loading branch information
Qishuai Liu committed Jan 19, 2023
1 parent 4fff56b commit 87404be
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions expression.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package sqlingo

import (
"fmt"
"math"
"reflect"
"strconv"
"unsafe"
Expand Down Expand Up @@ -218,7 +217,7 @@ func (e expression) GetSQL(scope scope) (string, error) {
return e.builder(scope)
}

var needsEscape = [math.MaxUint8]int{
var needsEscape = [256]int{
0: 1,
'\n': 1,
'\r': 1,
Expand Down

0 comments on commit 87404be

Please sign in to comment.