Skip to content
This repository was archived by the owner on Jan 28, 2021. It is now read-only.
This repository was archived by the owner on Jan 28, 2021. It is now read-only.

go get is downloading a different version or readme is wrong #541

@xild

Description

@xild

Installing the go-mysql-server as described in readme is resulting in error

Following the example instructions:

go get gopkg.in/src-d/go-mysql-server.v0

import (
	"fmt"
	"net"
	"testing"
	"time"

	"gopkg.in/src-d/go-mysql-server.v0"
	"gopkg.in/src-d/go-mysql-server.v0/mem"
	"gopkg.in/src-d/go-mysql-server.v0/server"
	"gopkg.in/src-d/go-mysql-server.v0/sql"
)

func main() {
	e := sqle.NewDefault()

	// Create a test memory database and register it to the default engine.
	d := createTestDatabase()
	e.AddDatabase(d)
	cfg := server.Config{
		Protocol:         "tcp",
		Address:          "localhost:3306",
		Auth:             nil,
		Tracer:           nil,
		ConnReadTimeout:  0,
		ConnWriteTimeout: 0,
	}

	defaultServer, err := server.NewDefaultServer(cfg, e)
	checkIfError(err)
	defaultServer.Start()
}

result in

/gopkg.in/src-d/go-mysql-server.v0/server/server.go:57:60: cannot use handler (type *Handler) as type mysql.Handler in argument to mysql.NewListener: *Handler does not implement mysql.Handler (missing WarningCount method)

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdocumentationThis is a documentation issue or pull request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy