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