1
0
Fork 0
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:
Paweł Chmielowski 2024-03-18 14:54:32 +01:00
parent 8f20dd8425
commit 537aac24f7
4 changed files with 43 additions and 7 deletions

View file

@ -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.