Use original driver for queries
This commit is contained in:
parent
cba0886b24
commit
5e2f862e2b
|
@ -4,7 +4,7 @@ import (
|
|||
"context"
|
||||
"database/sql"
|
||||
|
||||
_ "github.com/localhots/mysql" // MySQL driver
|
||||
_ "github.com/go-sql-driver/mysql" // MySQL driver
|
||||
|
||||
"github.com/juju/errors"
|
||||
"github.com/localhots/bocadillo/binlog"
|
||||
|
|
|
@ -67,7 +67,7 @@ func (r *Reader) ReadEvent() (*Event, error) {
|
|||
return nil, errors.Annotate(err, "read next event")
|
||||
}
|
||||
|
||||
evt := Event{Format: r.format}
|
||||
evt := Event{Format: r.format, Offset: r.state.Offset}
|
||||
if err := evt.Header.Decode(connBuff, r.format); err != nil {
|
||||
return nil, errors.Annotate(err, "decode event header")
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
"strconv"
|
||||
"testing"
|
||||
|
||||
_ "github.com/localhots/mysql"
|
||||
_ "github.com/go-sql-driver/mysql"
|
||||
|
||||
"github.com/localhots/bocadillo/binlog"
|
||||
"github.com/localhots/bocadillo/reader"
|
||||
|
|
Loading…
Reference in New Issue