Commit 3fbc7aa 1 parent e7718ac commit 3fbc7aa Copy full SHA for 3fbc7aa
File tree 2 files changed +12
-12
lines changed
2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ type selectBuilder struct {
15
15
groupBy string
16
16
partitionBy string
17
17
orderBy string
18
- limit * uint64
19
- slimit * uint64
20
- offset * uint64
21
- soffset * uint64
18
+ limit * uint32
19
+ slimit * uint32
20
+ offset * uint32
21
+ soffset * uint32
22
22
}
23
23
24
24
func NewSelectBuilder () * selectBuilder {
@@ -58,22 +58,22 @@ func (s *selectBuilder) OrderBy(value string) *selectBuilder {
58
58
return s
59
59
}
60
60
61
- func (s * selectBuilder ) Limit (value * uint64 ) * selectBuilder {
61
+ func (s * selectBuilder ) Limit (value * uint32 ) * selectBuilder {
62
62
s .limit = value
63
63
return s
64
64
}
65
65
66
- func (s * selectBuilder ) SLimit (value * uint64 ) * selectBuilder {
66
+ func (s * selectBuilder ) SLimit (value * uint32 ) * selectBuilder {
67
67
s .slimit = value
68
68
return s
69
69
}
70
70
71
- func (s * selectBuilder ) Offset (value * uint64 ) * selectBuilder {
71
+ func (s * selectBuilder ) Offset (value * uint32 ) * selectBuilder {
72
72
s .offset = value
73
73
return s
74
74
}
75
75
76
- func (s * selectBuilder ) SOffset (value * uint64 ) * selectBuilder {
76
+ func (s * selectBuilder ) SOffset (value * uint32 ) * selectBuilder {
77
77
s .soffset = value
78
78
return s
79
79
}
Original file line number Diff line number Diff line change @@ -111,16 +111,16 @@ func Test_Delete(t *testing.T) {
111
111
}
112
112
113
113
func Test_Select (t * testing.T ) {
114
- limit := uint64 (10 )
115
- offset := uint64 (0 )
114
+ limit := uint32 (10 )
115
+ offset := uint32 (0 )
116
116
117
117
tests := []struct {
118
118
columns []string
119
119
from string
120
120
wheres []string
121
121
orderBy string
122
- limit uint64
123
- offset uint64
122
+ limit uint32
123
+ offset uint32
124
124
expect string
125
125
}{
126
126
{
You can’t perform that action at this time.
0 commit comments