@@ -379,7 +379,7 @@ func (st *state) replyError(err error) error {
379379
380380func (c * conn ) Exec (query string , args []sqldriver.Value ) (sqldriver.Result , error ) {
381381 a := buildArgs (args )
382- r , err := c .Conn . Execute (query , a ... )
382+ r , err := c .Execute (query , a ... )
383383 if err != nil {
384384 return nil , c .state .replyError (err )
385385 }
@@ -389,7 +389,7 @@ func (c *conn) Exec(query string, args []sqldriver.Value) (sqldriver.Result, err
389389func (c * conn ) ExecContext (ctx context.Context , query string , args []sqldriver.NamedValue ) (sqldriver.Result , error ) {
390390 defer c .watchCtx (ctx )()
391391 a := buildNamedArgs (args )
392- r , err := c .Conn . Execute (query , a ... )
392+ r , err := c .Execute (query , a ... )
393393 if err != nil {
394394 return nil , c .state .replyError (err )
395395 }
@@ -398,7 +398,7 @@ func (c *conn) ExecContext(ctx context.Context, query string, args []sqldriver.N
398398
399399func (c * conn ) Query (query string , args []sqldriver.Value ) (sqldriver.Rows , error ) {
400400 a := buildArgs (args )
401- r , err := c .Conn . Execute (query , a ... )
401+ r , err := c .Execute (query , a ... )
402402 if err != nil {
403403 return nil , c .state .replyError (err )
404404 }
@@ -408,7 +408,7 @@ func (c *conn) Query(query string, args []sqldriver.Value) (sqldriver.Rows, erro
408408func (c * conn ) QueryContext (ctx context.Context , query string , args []sqldriver.NamedValue ) (sqldriver.Rows , error ) {
409409 defer c .watchCtx (ctx )()
410410 a := buildNamedArgs (args )
411- r , err := c .Conn . Execute (query , a ... )
411+ r , err := c .Execute (query , a ... )
412412 if err != nil {
413413 return nil , c .state .replyError (err )
414414 }
@@ -429,12 +429,12 @@ func (s *stmt) Close() error {
429429}
430430
431431func (s * stmt ) NumInput () int {
432- return s .Stmt . ParamNum ()
432+ return s .ParamNum ()
433433}
434434
435435func (s * stmt ) Exec (args []sqldriver.Value ) (sqldriver.Result , error ) {
436436 a := buildArgs (args )
437- r , err := s .Stmt . Execute (a ... )
437+ r , err := s .Execute (a ... )
438438 if err != nil {
439439 return nil , s .connectionState .replyError (err )
440440 }
@@ -445,7 +445,7 @@ func (s *stmt) ExecContext(ctx context.Context, args []sqldriver.NamedValue) (sq
445445 defer s .watchCtx (ctx )()
446446
447447 a := buildNamedArgs (args )
448- r , err := s .Stmt . Execute (a ... )
448+ r , err := s .Execute (a ... )
449449 if err != nil {
450450 return nil , s .connectionState .replyError (err )
451451 }
@@ -454,7 +454,7 @@ func (s *stmt) ExecContext(ctx context.Context, args []sqldriver.NamedValue) (sq
454454
455455func (s * stmt ) Query (args []sqldriver.Value ) (sqldriver.Rows , error ) {
456456 a := buildArgs (args )
457- r , err := s .Stmt . Execute (a ... )
457+ r , err := s .Execute (a ... )
458458 if err != nil {
459459 return nil , s .connectionState .replyError (err )
460460 }
@@ -465,7 +465,7 @@ func (s *stmt) QueryContext(ctx context.Context, args []sqldriver.NamedValue) (s
465465 defer s .watchCtx (ctx )()
466466
467467 a := buildNamedArgs (args )
468- r , err := s .Stmt . Execute (a ... )
468+ r , err := s .Execute (a ... )
469469 if err != nil {
470470 return nil , s .connectionState .replyError (err )
471471 }
@@ -489,11 +489,11 @@ type result struct {
489489}
490490
491491func (r * result ) LastInsertId () (int64 , error ) {
492- return int64 (r .Result . InsertId ), nil
492+ return int64 (r .InsertId ), nil
493493}
494494
495495func (r * result ) RowsAffected () (int64 , error ) {
496- return int64 (r .Result . AffectedRows ), nil
496+ return int64 (r .AffectedRows ), nil
497497}
498498
499499type rows struct {
@@ -531,14 +531,14 @@ func (r *rows) Close() error {
531531}
532532
533533func (r * rows ) Next (dest []sqldriver.Value ) error {
534- if r .step >= r .Resultset . RowNumber () {
534+ if r .step >= r .RowNumber () {
535535 return io .EOF
536536 } else if r .step == - 1 {
537537 return io .ErrUnexpectedEOF
538538 }
539539
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 )
542542 if err != nil {
543543 return err
544544 }
0 commit comments