mysql 프로토콜의 서버 상태 식별자에 대한 코드 세부정보

黄舟
풀어 주다: 2017-03-07 13:09:51
원래의
1404명이 탐색했습니다.

git

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

개요

서버 상태 식별자.

자세한 내용: https://dev.mysql.com/doc/internals/en/status-flags.html

ServerStatus 클래스

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 중국어 웹사이트(www.php.cn)를 참고하세요!


원천:php.cn
본 웹사이트의 성명
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.
인기 튜토리얼
더>
최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿
회사 소개 부인 성명 Sitemap
PHP 중국어 웹사이트:공공복지 온라인 PHP 교육,PHP 학습자의 빠른 성장을 도와주세요!