@@ -11,28 +11,28 @@ import (
1111)
1212
1313func fillSearch (enc * msgpack.Encoder , spaceNo , indexNo uint32 , key interface {}) error {
14- enc .EncodeUint64 (KeySpaceNo )
15- enc .EncodeUint64 ( uint64 (spaceNo ))
16- enc .EncodeUint64 (KeyIndexNo )
17- enc .EncodeUint64 ( uint64 (indexNo ))
18- enc .EncodeUint64 (KeyKey )
14+ enc .EncodeUint (KeySpaceNo )
15+ enc .EncodeUint ( uint (spaceNo ))
16+ enc .EncodeUint (KeyIndexNo )
17+ enc .EncodeUint ( uint (indexNo ))
18+ enc .EncodeUint (KeyKey )
1919 return enc .Encode (key )
2020}
2121
2222func fillIterator (enc * msgpack.Encoder , offset , limit , iterator uint32 ) {
23- enc .EncodeUint64 (KeyIterator )
24- enc .EncodeUint64 ( uint64 (iterator ))
25- enc .EncodeUint64 (KeyOffset )
26- enc .EncodeUint64 ( uint64 (offset ))
27- enc .EncodeUint64 (KeyLimit )
28- enc .EncodeUint64 ( uint64 (limit ))
23+ enc .EncodeUint (KeyIterator )
24+ enc .EncodeUint ( uint (iterator ))
25+ enc .EncodeUint (KeyOffset )
26+ enc .EncodeUint ( uint (offset ))
27+ enc .EncodeUint (KeyLimit )
28+ enc .EncodeUint ( uint (limit ))
2929}
3030
3131func fillInsert (enc * msgpack.Encoder , spaceNo uint32 , tuple interface {}) error {
3232 enc .EncodeMapLen (2 )
33- enc .EncodeUint64 (KeySpaceNo )
34- enc .EncodeUint64 ( uint64 (spaceNo ))
35- enc .EncodeUint64 (KeyTuple )
33+ enc .EncodeUint (KeySpaceNo )
34+ enc .EncodeUint ( uint (spaceNo ))
35+ enc .EncodeUint (KeyTuple )
3636 return enc .Encode (tuple )
3737}
3838
@@ -47,19 +47,19 @@ func fillUpdate(enc *msgpack.Encoder, spaceNo, indexNo uint32, key, ops interfac
4747 if err := fillSearch (enc , spaceNo , indexNo , key ); err != nil {
4848 return err
4949 }
50- enc .EncodeUint64 (KeyTuple )
50+ enc .EncodeUint (KeyTuple )
5151 return enc .Encode (ops )
5252}
5353
5454func fillUpsert (enc * msgpack.Encoder , spaceNo uint32 , tuple , ops interface {}) error {
5555 enc .EncodeMapLen (3 )
56- enc .EncodeUint64 (KeySpaceNo )
57- enc .EncodeUint64 ( uint64 (spaceNo ))
58- enc .EncodeUint64 (KeyTuple )
56+ enc .EncodeUint (KeySpaceNo )
57+ enc .EncodeUint ( uint (spaceNo ))
58+ enc .EncodeUint (KeyTuple )
5959 if err := enc .Encode (tuple ); err != nil {
6060 return err
6161 }
62- enc .EncodeUint64 (KeyDefTuple )
62+ enc .EncodeUint (KeyDefTuple )
6363 return enc .Encode (ops )
6464}
6565
@@ -70,25 +70,25 @@ func fillDelete(enc *msgpack.Encoder, spaceNo, indexNo uint32, key interface{})
7070
7171func fillCall (enc * msgpack.Encoder , functionName string , args interface {}) error {
7272 enc .EncodeMapLen (2 )
73- enc .EncodeUint64 (KeyFunctionName )
73+ enc .EncodeUint (KeyFunctionName )
7474 enc .EncodeString (functionName )
75- enc .EncodeUint64 (KeyTuple )
75+ enc .EncodeUint (KeyTuple )
7676 return enc .Encode (args )
7777}
7878
7979func fillEval (enc * msgpack.Encoder , expr string , args interface {}) error {
8080 enc .EncodeMapLen (2 )
81- enc .EncodeUint64 (KeyExpression )
81+ enc .EncodeUint (KeyExpression )
8282 enc .EncodeString (expr )
83- enc .EncodeUint64 (KeyTuple )
83+ enc .EncodeUint (KeyTuple )
8484 return enc .Encode (args )
8585}
8686
8787func fillExecute (enc * msgpack.Encoder , expr string , args interface {}) error {
8888 enc .EncodeMapLen (2 )
89- enc .EncodeUint64 (KeySQLText )
89+ enc .EncodeUint (KeySQLText )
9090 enc .EncodeString (expr )
91- enc .EncodeUint64 (KeySQLBind )
91+ enc .EncodeUint (KeySQLBind )
9292 return encodeSQLBind (enc , args )
9393}
9494
0 commit comments