mysql 协议的server状态标识

git

https://github.com/sea-boat/mysql-protocol

概况

server状态标识。

更多详情 : https://dev.mysql.com/doc/internals/en/status-flags.html

ServerStatus类

package com.seaboat.mysql.protocol.constant;

/**
 * 
 * <pre><b>server status.</b></pre>
 * @author 
 * <pre>seaboat</pre>
 * <pre><b>email: </b>849586227@qq.com</pre>
 * <pre><b>blog: </b>http://blog.csdn.net/wangyangzhizhou</pre>
 * @version 1.0
 * @see https://dev.mysql.com/doc/internals/en/status-flags.html
 */
public class ServerStatus {
    // a transaction is active
    public static int SERVER_STATUS_IN_TRANS = 0x0001;
    // auto-commit is enabled
    public static int SERVER_STATUS_AUTOCOMMIT = 0x0002;
    public static int SERVER_MORE_RESULTS_EXISTS = 0x0008;
    public static int SERVER_STATUS_NO_GOOD_INDEX_USED = 0x0010;
    public static int SERVER_STATUS_NO_INDEX_USED = 0x0020;
    // Used by Binary Protocol Resultset to signal that COM_STMT_FETCH must be
    // used to fetch the row-data.
    public static int SERVER_STATUS_CURSOR_EXISTS = 0x0040;
    public static int SERVER_STATUS_LAST_ROW_SENT = 0x0080;
    public static int SERVER_STATUS_DB_DROPPED = 0x0100;
    public static int SERVER_STATUS_NO_BACKSLASH_ESCAPES = 0x0200;
    public static int SERVER_STATUS_METADATA_CHANGED = 0x0400;
    public static int SERVER_QUERY_WAS_SLOW = 0x0800;
    public static int SERVER_PS_OUT_PARAMS = 0x1000;
    // in a read-only transaction
    public static int SERVER_STATUS_IN_TRANS_READONLY = 0x2000;
    // connection state information has changed
    public static int SERVER_SESSION_STATE_CHANGED = 0x4000;
}

========广告时间========

鄙人的新书《Tomcat内核设计剖析》已经在京东销售了,有需要的朋友可以到 https://item.jd.com/12185360.html 进行预定。感谢各位朋友。

为什么写《Tomcat内核设计剖析》

=========================

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

超人汪小建(seaboat)

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值