diff --git a/src/mysql_conn.erl b/src/mysql_conn.erl index a077598..92a4ada 100644 --- a/src/mysql_conn.erl +++ b/src/mysql_conn.erl @@ -17,7 +17,7 @@ %%% Modified: 23 Sep 2006 by Yariv Sadan %%% Added transaction handling and prepared statement execution. %%% -%%% Copyright (c) 2001-2004 Kungliga Tekniska Högskolan +%%% Copyright (c) 2001-2004 Kungliga Tekniska Högskolan %%% See the file COPYING %%% %%% @@ -901,11 +901,14 @@ normalize_version([$4,$.,$1|_T], _LogFun) -> normalize_version([$5|_T], _LogFun) -> %% MySQL version 5.x protocol is compliant with MySQL 4.1.x: ?MYSQL_4_1; +normalize_version([$8,$.,$0|_T], _LogFun) -> + %% MySQL version 8.0 protocol is compliant with MySQL 4.1.x: + ?MYSQL_4_1; normalize_version(_Other, LogFun) -> ?Log(LogFun, error, "MySQL version not supported: MySQL Erlang module " "might not work correctly."), - %% Error, but trying the oldest protocol anyway: - ?MYSQL_4_0. + %% When in doubt, assume newest known version to be most compatible: + ?MYSQL_4_1. %%-------------------------------------------------------------------- % Function: get_field_datatype(DataType)