Including errmsg.h causes build problems on import.
So, punting on this for now by hardcoding the error code.
This commit is contained in:
Sugu Sougoumarane 2015-04-24 15:03:22 -07:00
Родитель e89a1b8c0a
Коммит bc30358eab
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -50,8 +50,9 @@ const (
// ErrOptionPreventsStatement is C.ER_OPTION_PREVENTS_STATEMENT
ErrOptionPreventsStatement = C.ER_OPTION_PREVENTS_STATEMENT
// ErrServerLost is C.CR_SERVER_LOST (2013)
ErrServerLost = C.CR_SERVER_LOST
// ErrServerLost is C.CR_SERVER_LOST.
// It's hard-coded for now because it causes problems on import.
ErrServerLost = 2013
// RedactedPassword is the password value used in redacted configs
RedactedPassword = "****"

Просмотреть файл

@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
#include <mysql.h>
#include <errmsg.h>
// This API provides convenient C wrapper functions for mysql client.