ホームページ  >  記事  >  データベース  >  mysqlプロトコルのサーバーステータス識別子のコード詳細

mysqlプロトコルのサーバーステータス識別子のコード詳細

黄舟
黄舟オリジナル
2017-03-07 13:09:511405ブラウズ

git

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

概要

サーバーステータスの識別。

詳細: https://dev.mysql.com/doc/internals/en/status-flags.html

ServerStatus class

package com.seaboat.mysql.protocol.constant;/**
 * 
 * <pre class="brush:php;toolbar:false"><b>server status.</b>
* @author *
seaboat
*
<b>email: </b>849586227@qq.com
*
<b>blog: </b>http://www.php.cn/;/pre>
 * @version 1.0
 * @see http://www.php.cn/
 */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;
}

上記は、mysql プロトコルのサーバー ステータス識別子のコードの詳細です。その他 関連コンテンツについては、PHP 中国語 Web サイト (www.php.cn) にご注目ください。


声明:
この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。