@@ -9,28 +9,28 @@ import (
9
9
)
10
10
11
11
func fillSearch (enc * encoder , spaceNo , indexNo uint32 , key interface {}) error {
12
- enc . EncodeUint ( KeySpaceNo )
13
- enc . EncodeUint ( uint (spaceNo ))
14
- enc . EncodeUint ( KeyIndexNo )
15
- enc . EncodeUint ( uint (indexNo ))
16
- enc . EncodeUint ( KeyKey )
12
+ encodeUint ( enc , KeySpaceNo )
13
+ encodeUint ( enc , uint64 (spaceNo ))
14
+ encodeUint ( enc , KeyIndexNo )
15
+ encodeUint ( enc , uint64 (indexNo ))
16
+ encodeUint ( enc , KeyKey )
17
17
return enc .Encode (key )
18
18
}
19
19
20
20
func fillIterator (enc * encoder , offset , limit , iterator uint32 ) {
21
- enc . EncodeUint ( KeyIterator )
22
- enc . EncodeUint ( uint (iterator ))
23
- enc . EncodeUint ( KeyOffset )
24
- enc . EncodeUint ( uint (offset ))
25
- enc . EncodeUint ( KeyLimit )
26
- enc . EncodeUint ( uint (limit ))
21
+ encodeUint ( enc , KeyIterator )
22
+ encodeUint ( enc , uint64 (iterator ))
23
+ encodeUint ( enc , KeyOffset )
24
+ encodeUint ( enc , uint64 (offset ))
25
+ encodeUint ( enc , KeyLimit )
26
+ encodeUint ( enc , uint64 (limit ))
27
27
}
28
28
29
29
func fillInsert (enc * encoder , spaceNo uint32 , tuple interface {}) error {
30
30
enc .EncodeMapLen (2 )
31
- enc . EncodeUint ( KeySpaceNo )
32
- enc . EncodeUint ( uint (spaceNo ))
33
- enc . EncodeUint ( KeyTuple )
31
+ encodeUint ( enc , KeySpaceNo )
32
+ encodeUint ( enc , uint64 (spaceNo ))
33
+ encodeUint ( enc , KeyTuple )
34
34
return enc .Encode (tuple )
35
35
}
36
36
@@ -45,19 +45,19 @@ func fillUpdate(enc *encoder, spaceNo, indexNo uint32, key, ops interface{}) err
45
45
if err := fillSearch (enc , spaceNo , indexNo , key ); err != nil {
46
46
return err
47
47
}
48
- enc . EncodeUint ( KeyTuple )
48
+ encodeUint ( enc , KeyTuple )
49
49
return enc .Encode (ops )
50
50
}
51
51
52
52
func fillUpsert (enc * encoder , spaceNo uint32 , tuple , ops interface {}) error {
53
53
enc .EncodeMapLen (3 )
54
- enc . EncodeUint ( KeySpaceNo )
55
- enc . EncodeUint ( uint (spaceNo ))
56
- enc . EncodeUint ( KeyTuple )
54
+ encodeUint ( enc , KeySpaceNo )
55
+ encodeUint ( enc , uint64 (spaceNo ))
56
+ encodeUint ( enc , KeyTuple )
57
57
if err := enc .Encode (tuple ); err != nil {
58
58
return err
59
59
}
60
- enc . EncodeUint ( KeyDefTuple )
60
+ encodeUint ( enc , KeyDefTuple )
61
61
return enc .Encode (ops )
62
62
}
63
63
@@ -68,25 +68,25 @@ func fillDelete(enc *encoder, spaceNo, indexNo uint32, key interface{}) error {
68
68
69
69
func fillCall (enc * encoder , functionName string , args interface {}) error {
70
70
enc .EncodeMapLen (2 )
71
- enc . EncodeUint ( KeyFunctionName )
71
+ encodeUint ( enc , KeyFunctionName )
72
72
enc .EncodeString (functionName )
73
- enc . EncodeUint ( KeyTuple )
73
+ encodeUint ( enc , KeyTuple )
74
74
return enc .Encode (args )
75
75
}
76
76
77
77
func fillEval (enc * encoder , expr string , args interface {}) error {
78
78
enc .EncodeMapLen (2 )
79
- enc . EncodeUint ( KeyExpression )
79
+ encodeUint ( enc , KeyExpression )
80
80
enc .EncodeString (expr )
81
- enc . EncodeUint ( KeyTuple )
81
+ encodeUint ( enc , KeyTuple )
82
82
return enc .Encode (args )
83
83
}
84
84
85
85
func fillExecute (enc * encoder , expr string , args interface {}) error {
86
86
enc .EncodeMapLen (2 )
87
- enc . EncodeUint ( KeySQLText )
87
+ encodeUint ( enc , KeySQLText )
88
88
enc .EncodeString (expr )
89
- enc . EncodeUint ( KeySQLBind )
89
+ encodeUint ( enc , KeySQLBind )
90
90
return encodeSQLBind (enc , args )
91
91
}
92
92
0 commit comments