mirror of
https://github.com/processone/ejabberd
synced 2025-10-04 18:29:20 +02:00
Improve detection of types in odbc
This should fix issue with dialyzer on erlang 26.2.3+
This commit is contained in:
parent
8f20dd8425
commit
537aac24f7
4 changed files with 43 additions and 7 deletions
|
@ -67,12 +67,8 @@
|
|||
-export([connecting/2, connecting/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.
|
||||
-ifdef(ODBC_HAS_TYPES).
|
||||
-type(odbc_connection_reference() :: odbc:connection_reference()).
|
||||
-else.
|
||||
-type(odbc_connection_reference() :: pid()).
|
||||
-endif.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue