server_status.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. // Manually extracted from mysql-5.5.23/include/mysql_com.h
  2. /**
  3. Is raised when a multi-statement transaction
  4. has been started, either explicitly, by means
  5. of BEGIN or COMMIT AND CHAIN, or
  6. implicitly, by the first transactional
  7. statement, when autocommit=off.
  8. */
  9. exports.SERVER_STATUS_IN_TRANS = 1;
  10. exports.SERVER_STATUS_AUTOCOMMIT = 2; /* Server in auto_commit mode */
  11. exports.SERVER_MORE_RESULTS_EXISTS = 8; /* Multi query - next query exists */
  12. exports.SERVER_QUERY_NO_GOOD_INDEX_USED = 16;
  13. exports.SERVER_QUERY_NO_INDEX_USED = 32;
  14. /**
  15. The server was able to fulfill the clients request and opened a
  16. read-only non-scrollable cursor for a query. This flag comes
  17. in reply to COM_STMT_EXECUTE and COM_STMT_FETCH commands.
  18. */
  19. exports.SERVER_STATUS_CURSOR_EXISTS = 64;
  20. /**
  21. This flag is sent when a read-only cursor is exhausted, in reply to
  22. COM_STMT_FETCH command.
  23. */
  24. exports.SERVER_STATUS_LAST_ROW_SENT = 128;
  25. exports.SERVER_STATUS_DB_DROPPED = 256; /* A database was dropped */
  26. exports.SERVER_STATUS_NO_BACKSLASH_ESCAPES = 512;
  27. /**
  28. Sent to the client if after a prepared statement reprepare
  29. we discovered that the new statement returns a different
  30. number of result set columns.
  31. */
  32. exports.SERVER_STATUS_METADATA_CHANGED = 1024;
  33. exports.SERVER_QUERY_WAS_SLOW = 2048;
  34. /**
  35. To mark ResultSet containing output parameter values.
  36. */
  37. exports.SERVER_PS_OUT_PARAMS = 4096;