File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed
Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ type selectBuilder struct {
1515 groupBy string
1616 partitionBy string
1717 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
2222}
2323
2424func NewSelectBuilder () * selectBuilder {
@@ -58,22 +58,22 @@ func (s *selectBuilder) OrderBy(value string) *selectBuilder {
5858 return s
5959}
6060
61- func (s * selectBuilder ) Limit (value * uint64 ) * selectBuilder {
61+ func (s * selectBuilder ) Limit (value * uint32 ) * selectBuilder {
6262 s .limit = value
6363 return s
6464}
6565
66- func (s * selectBuilder ) SLimit (value * uint64 ) * selectBuilder {
66+ func (s * selectBuilder ) SLimit (value * uint32 ) * selectBuilder {
6767 s .slimit = value
6868 return s
6969}
7070
71- func (s * selectBuilder ) Offset (value * uint64 ) * selectBuilder {
71+ func (s * selectBuilder ) Offset (value * uint32 ) * selectBuilder {
7272 s .offset = value
7373 return s
7474}
7575
76- func (s * selectBuilder ) SOffset (value * uint64 ) * selectBuilder {
76+ func (s * selectBuilder ) SOffset (value * uint32 ) * selectBuilder {
7777 s .soffset = value
7878 return s
7979}
Original file line number Diff line number Diff line change @@ -111,16 +111,16 @@ func Test_Delete(t *testing.T) {
111111}
112112
113113func Test_Select (t * testing.T ) {
114- limit := uint64 (10 )
115- offset := uint64 (0 )
114+ limit := uint32 (10 )
115+ offset := uint32 (0 )
116116
117117 tests := []struct {
118118 columns []string
119119 from string
120120 wheres []string
121121 orderBy string
122- limit uint64
123- offset uint64
122+ limit uint32
123+ offset uint32
124124 expect string
125125 }{
126126 {
You can’t perform that action at this time.
0 commit comments