mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Add alternative types that should fix dialyzer on r26
This commit is contained in:
parent
1b5a9c1a1f
commit
f4de0cef26
@ -67,12 +67,22 @@
|
|||||||
-export([connecting/2, connecting/3,
|
-export([connecting/2, connecting/3,
|
||||||
session_established/2, session_established/3]).
|
session_established/2, session_established/3]).
|
||||||
|
|
||||||
|
-ifdef(OTP_RELEASE).
|
||||||
|
-if(?OTP_RELEASE >= 27).
|
||||||
|
-type(odbc_connection_reference() :: odbc:connection_reference()).
|
||||||
|
-else.
|
||||||
|
-type(odbc_connection_reference() :: pid()).
|
||||||
|
-endif.
|
||||||
|
-else.
|
||||||
|
-type(odbc_connection_reference() :: pid()).
|
||||||
|
-endif.
|
||||||
|
|
||||||
-include("logger.hrl").
|
-include("logger.hrl").
|
||||||
-include("ejabberd_sql_pt.hrl").
|
-include("ejabberd_sql_pt.hrl").
|
||||||
-include("ejabberd_stacktrace.hrl").
|
-include("ejabberd_stacktrace.hrl").
|
||||||
|
|
||||||
-record(state,
|
-record(state,
|
||||||
{db_ref :: undefined | pid() | odbc:connection_reference(),
|
{db_ref :: undefined | pid() | odbc_connection_reference(),
|
||||||
db_type = odbc :: pgsql | mysql | sqlite | odbc | mssql,
|
db_type = odbc :: pgsql | mysql | sqlite | odbc | mssql,
|
||||||
db_version :: undefined | non_neg_integer() | {non_neg_integer(), atom(), non_neg_integer()},
|
db_version :: undefined | non_neg_integer() | {non_neg_integer(), atom(), non_neg_integer()},
|
||||||
reconnect_count = 0 :: non_neg_integer(),
|
reconnect_count = 0 :: non_neg_integer(),
|
||||||
|
Loading…
Reference in New Issue
Block a user