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