@@ -28,27 +28,27 @@ func (conn *Connection) Ping() (resp *Response, err error) {
28
28
}
29
29
30
30
func (req * Future ) fillSearch (enc * msgpack.Encoder , spaceNo , indexNo uint32 , key interface {}) error {
31
- enc .EncodeUint64 (KeySpaceNo )
32
- enc .EncodeUint64 ( uint64 (spaceNo ))
33
- enc .EncodeUint64 (KeyIndexNo )
34
- enc .EncodeUint64 ( uint64 (indexNo ))
35
- enc .EncodeUint64 (KeyKey )
31
+ enc .EncodeUint (KeySpaceNo )
32
+ enc .EncodeUint ( uint (spaceNo ))
33
+ enc .EncodeUint (KeyIndexNo )
34
+ enc .EncodeUint ( uint (indexNo ))
35
+ enc .EncodeUint (KeyKey )
36
36
return enc .Encode (key )
37
37
}
38
38
39
39
func (req * Future ) fillIterator (enc * msgpack.Encoder , offset , limit , iterator uint32 ) {
40
- enc .EncodeUint64 (KeyIterator )
41
- enc .EncodeUint64 ( uint64 (iterator ))
42
- enc .EncodeUint64 (KeyOffset )
43
- enc .EncodeUint64 ( uint64 (offset ))
44
- enc .EncodeUint64 (KeyLimit )
45
- enc .EncodeUint64 ( uint64 (limit ))
40
+ enc .EncodeUint (KeyIterator )
41
+ enc .EncodeUint ( uint (iterator ))
42
+ enc .EncodeUint (KeyOffset )
43
+ enc .EncodeUint ( uint (offset ))
44
+ enc .EncodeUint (KeyLimit )
45
+ enc .EncodeUint ( uint (limit ))
46
46
}
47
47
48
48
func (req * Future ) fillInsert (enc * msgpack.Encoder , spaceNo uint32 , tuple interface {}) error {
49
- enc .EncodeUint64 (KeySpaceNo )
50
- enc .EncodeUint64 ( uint64 (spaceNo ))
51
- enc .EncodeUint64 (KeyTuple )
49
+ enc .EncodeUint (KeySpaceNo )
50
+ enc .EncodeUint ( uint (spaceNo ))
51
+ enc .EncodeUint (KeyTuple )
52
52
return enc .Encode (tuple )
53
53
}
54
54
@@ -302,7 +302,7 @@ func (conn *Connection) UpdateAsync(space, index interface{}, key, ops interface
302
302
if err := future .fillSearch (enc , spaceNo , indexNo , key ); err != nil {
303
303
return err
304
304
}
305
- enc .EncodeUint64 (KeyTuple )
305
+ enc .EncodeUint (KeyTuple )
306
306
return enc .Encode (ops )
307
307
})
308
308
}
@@ -317,13 +317,13 @@ func (conn *Connection) UpsertAsync(space interface{}, tuple interface{}, ops in
317
317
}
318
318
return future .send (conn , func (enc * msgpack.Encoder ) error {
319
319
enc .EncodeMapLen (3 )
320
- enc .EncodeUint64 (KeySpaceNo )
321
- enc .EncodeUint64 ( uint64 (spaceNo ))
322
- enc .EncodeUint64 (KeyTuple )
320
+ enc .EncodeUint (KeySpaceNo )
321
+ enc .EncodeUint ( uint (spaceNo ))
322
+ enc .EncodeUint (KeyTuple )
323
323
if err := enc .Encode (tuple ); err != nil {
324
324
return err
325
325
}
326
- enc .EncodeUint64 (KeyDefTuple )
326
+ enc .EncodeUint (KeyDefTuple )
327
327
return enc .Encode (ops )
328
328
})
329
329
}
@@ -334,9 +334,9 @@ func (conn *Connection) CallAsync(functionName string, args interface{}) *Future
334
334
future := conn .newFuture (CallRequest )
335
335
return future .send (conn , func (enc * msgpack.Encoder ) error {
336
336
enc .EncodeMapLen (2 )
337
- enc .EncodeUint64 (KeyFunctionName )
337
+ enc .EncodeUint (KeyFunctionName )
338
338
enc .EncodeString (functionName )
339
- enc .EncodeUint64 (KeyTuple )
339
+ enc .EncodeUint (KeyTuple )
340
340
return enc .Encode (args )
341
341
})
342
342
}
@@ -348,9 +348,9 @@ func (conn *Connection) Call17Async(functionName string, args interface{}) *Futu
348
348
future := conn .newFuture (Call17Request )
349
349
return future .send (conn , func (enc * msgpack.Encoder ) error {
350
350
enc .EncodeMapLen (2 )
351
- enc .EncodeUint64 (KeyFunctionName )
351
+ enc .EncodeUint (KeyFunctionName )
352
352
enc .EncodeString (functionName )
353
- enc .EncodeUint64 (KeyTuple )
353
+ enc .EncodeUint (KeyTuple )
354
354
return enc .Encode (args )
355
355
})
356
356
}
@@ -360,9 +360,9 @@ func (conn *Connection) EvalAsync(expr string, args interface{}) *Future {
360
360
future := conn .newFuture (EvalRequest )
361
361
return future .send (conn , func (enc * msgpack.Encoder ) error {
362
362
enc .EncodeMapLen (2 )
363
- enc .EncodeUint64 (KeyExpression )
363
+ enc .EncodeUint (KeyExpression )
364
364
enc .EncodeString (expr )
365
- enc .EncodeUint64 (KeyTuple )
365
+ enc .EncodeUint (KeyTuple )
366
366
return enc .Encode (args )
367
367
})
368
368
}
@@ -373,9 +373,9 @@ func (conn *Connection) ExecuteAsync(expr string, args interface{}) *Future {
373
373
future := conn .newFuture (ExecuteRequest )
374
374
return future .send (conn , func (enc * msgpack.Encoder ) error {
375
375
enc .EncodeMapLen (2 )
376
- enc .EncodeUint64 (KeySQLText )
376
+ enc .EncodeUint (KeySQLText )
377
377
enc .EncodeString (expr )
378
- enc .EncodeUint64 (KeySQLBind )
378
+ enc .EncodeUint (KeySQLBind )
379
379
return encodeSQLBind (enc , args )
380
380
})
381
381
}
0 commit comments