server_status.hrl 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. %% MySQL/OTP – MySQL client library for Erlang/OTP
  2. %% Copyright (C) 2014 Viktor Söderqvist
  3. %%
  4. %% This file is part of MySQL/OTP.
  5. %%
  6. %% MySQL/OTP is free software: you can redistribute it and/or modify it under
  7. %% the terms of the GNU Lesser General Public License as published by the Free
  8. %% Software Foundation, either version 3 of the License, or (at your option)
  9. %% any later version.
  10. %%
  11. %% This program is distributed in the hope that it will be useful, but WITHOUT
  12. %% ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13. %% FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  14. %% more details.
  15. %%
  16. %% You should have received a copy of the GNU Lesser General Public License
  17. %% along with this program. If not, see <https://www.gnu.org/licenses/>.
  18. %% --- Status flags (bits) ---
  19. -define(SERVER_STATUS_IN_TRANS, 16#0001). %% a transaction is active
  20. -define(SERVER_STATUS_AUTOCOMMIT, 16#0002). %% auto-commit is enabled
  21. -define(SERVER_MORE_RESULTS_EXISTS, 16#0008).
  22. -define(SERVER_STATUS_NO_GOOD_INDEX_USED, 16#0010).
  23. -define(SERVER_STATUS_NO_INDEX_USED, 16#0020).
  24. -define(SERVER_STATUS_CURSOR_EXISTS, 16#0040). %% Used by Binary Protocol
  25. %% Resultset to signal that
  26. %% COM_STMT_FETCH has to be used
  27. %% to fetch the row-data.
  28. -define(SERVER_STATUS_LAST_ROW_SENT, 16#0080).
  29. -define(SERVER_STATUS_DB_DROPPED, 16#0100).
  30. -define(SERVER_STATUS_NO_BACKSLASH_ESCAPES, 16#0200).
  31. -define(SERVER_STATUS_METADATA_CHANGED, 16#0400).
  32. -define(SERVER_QUERY_WAS_SLOW, 16#0800).
  33. -define(SERVER_PS_OUT_PARAMS, 16#1000).
  34. -define(SERVER_STATUS_IN_TRANS_READONLY, 16#2000). %% in a read-only transaction
  35. -define(SERVER_SESSION_STATE_CHANGED, 16#4000). %% connection state information
  36. %% has changed