@@ -379,7 +379,7 @@ func (st *state) replyError(err error) error {
379
379
380
380
func (c * conn ) Exec (query string , args []sqldriver.Value ) (sqldriver.Result , error ) {
381
381
a := buildArgs (args )
382
- r , err := c .Conn . Execute (query , a ... )
382
+ r , err := c .Execute (query , a ... )
383
383
if err != nil {
384
384
return nil , c .state .replyError (err )
385
385
}
@@ -389,7 +389,7 @@ func (c *conn) Exec(query string, args []sqldriver.Value) (sqldriver.Result, err
389
389
func (c * conn ) ExecContext (ctx context.Context , query string , args []sqldriver.NamedValue ) (sqldriver.Result , error ) {
390
390
defer c .watchCtx (ctx )()
391
391
a := buildNamedArgs (args )
392
- r , err := c .Conn . Execute (query , a ... )
392
+ r , err := c .Execute (query , a ... )
393
393
if err != nil {
394
394
return nil , c .state .replyError (err )
395
395
}
@@ -398,7 +398,7 @@ func (c *conn) ExecContext(ctx context.Context, query string, args []sqldriver.N
398
398
399
399
func (c * conn ) Query (query string , args []sqldriver.Value ) (sqldriver.Rows , error ) {
400
400
a := buildArgs (args )
401
- r , err := c .Conn . Execute (query , a ... )
401
+ r , err := c .Execute (query , a ... )
402
402
if err != nil {
403
403
return nil , c .state .replyError (err )
404
404
}
@@ -408,7 +408,7 @@ func (c *conn) Query(query string, args []sqldriver.Value) (sqldriver.Rows, erro
408
408
func (c * conn ) QueryContext (ctx context.Context , query string , args []sqldriver.NamedValue ) (sqldriver.Rows , error ) {
409
409
defer c .watchCtx (ctx )()
410
410
a := buildNamedArgs (args )
411
- r , err := c .Conn . Execute (query , a ... )
411
+ r , err := c .Execute (query , a ... )
412
412
if err != nil {
413
413
return nil , c .state .replyError (err )
414
414
}
@@ -429,12 +429,12 @@ func (s *stmt) Close() error {
429
429
}
430
430
431
431
func (s * stmt ) NumInput () int {
432
- return s .Stmt . ParamNum ()
432
+ return s .ParamNum ()
433
433
}
434
434
435
435
func (s * stmt ) Exec (args []sqldriver.Value ) (sqldriver.Result , error ) {
436
436
a := buildArgs (args )
437
- r , err := s .Stmt . Execute (a ... )
437
+ r , err := s .Execute (a ... )
438
438
if err != nil {
439
439
return nil , s .connectionState .replyError (err )
440
440
}
@@ -445,7 +445,7 @@ func (s *stmt) ExecContext(ctx context.Context, args []sqldriver.NamedValue) (sq
445
445
defer s .watchCtx (ctx )()
446
446
447
447
a := buildNamedArgs (args )
448
- r , err := s .Stmt . Execute (a ... )
448
+ r , err := s .Execute (a ... )
449
449
if err != nil {
450
450
return nil , s .connectionState .replyError (err )
451
451
}
@@ -454,7 +454,7 @@ func (s *stmt) ExecContext(ctx context.Context, args []sqldriver.NamedValue) (sq
454
454
455
455
func (s * stmt ) Query (args []sqldriver.Value ) (sqldriver.Rows , error ) {
456
456
a := buildArgs (args )
457
- r , err := s .Stmt . Execute (a ... )
457
+ r , err := s .Execute (a ... )
458
458
if err != nil {
459
459
return nil , s .connectionState .replyError (err )
460
460
}
@@ -465,7 +465,7 @@ func (s *stmt) QueryContext(ctx context.Context, args []sqldriver.NamedValue) (s
465
465
defer s .watchCtx (ctx )()
466
466
467
467
a := buildNamedArgs (args )
468
- r , err := s .Stmt . Execute (a ... )
468
+ r , err := s .Execute (a ... )
469
469
if err != nil {
470
470
return nil , s .connectionState .replyError (err )
471
471
}
@@ -489,11 +489,11 @@ type result struct {
489
489
}
490
490
491
491
func (r * result ) LastInsertId () (int64 , error ) {
492
- return int64 (r .Result . InsertId ), nil
492
+ return int64 (r .InsertId ), nil
493
493
}
494
494
495
495
func (r * result ) RowsAffected () (int64 , error ) {
496
- return int64 (r .Result . AffectedRows ), nil
496
+ return int64 (r .AffectedRows ), nil
497
497
}
498
498
499
499
type rows struct {
@@ -531,14 +531,14 @@ func (r *rows) Close() error {
531
531
}
532
532
533
533
func (r * rows ) Next (dest []sqldriver.Value ) error {
534
- if r .step >= r .Resultset . RowNumber () {
534
+ if r .step >= r .RowNumber () {
535
535
return io .EOF
536
536
} else if r .step == - 1 {
537
537
return io .ErrUnexpectedEOF
538
538
}
539
539
540
- for i := 0 ; i < r .Resultset . ColumnNumber (); i ++ {
541
- value , err := r .Resultset . GetValue (r .step , i )
540
+ for i := 0 ; i < r .ColumnNumber (); i ++ {
541
+ value , err := r .GetValue (r .step , i )
542
542
if err != nil {
543
543
return err
544
544
}
0 commit comments