亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? mysqlio.java

?? mysql jdbc驅動程序 mysql jdbc驅動程序 mysql jdbc驅動程序 mysql jdbc驅動程序
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
/*      Copyright (C) 2002-2007 MySQL AB      This program is free software; you can redistribute it and/or modify      it under the terms of version 2 of the GNU General Public License as      published by the Free Software Foundation.      There are special exceptions to the terms and conditions of the GPL      as it is applied to this software. View the full text of the      exception in file EXCEPTIONS-CONNECTOR-J in the directory of this      software distribution.      This program is distributed in the hope that it will be useful,      but WITHOUT ANY WARRANTY; without even the implied warranty of      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the      GNU General Public License for more details.      You should have received a copy of the GNU General Public License      along with this program; if not, write to the Free Software      Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */package com.mysql.jdbc;import java.io.BufferedInputStream;import java.io.BufferedOutputStream;import java.io.ByteArrayOutputStream;import java.io.EOFException;import java.io.FileInputStream;import java.io.IOException;import java.io.InputStream;import java.io.OutputStreamWriter;import java.lang.ref.SoftReference;import java.lang.reflect.Method;import java.math.BigInteger;import java.net.MalformedURLException;import java.net.Socket;import java.net.URL;import java.nio.ByteBuffer;import java.security.NoSuchAlgorithmException;import java.sql.SQLException;import java.util.ArrayList;import java.util.Calendar;import java.util.Iterator;import java.util.LinkedList;import java.util.List;import java.util.Properties;import java.util.zip.Deflater;import com.mysql.jdbc.profiler.ProfileEventSink;import com.mysql.jdbc.profiler.ProfilerEvent;import com.mysql.jdbc.util.ReadAheadInputStream;import com.mysql.jdbc.util.ResultSetUtil;/** * This class is used by Connection for communicating with the MySQL server. * * @author Mark Matthews * @version $Id: MysqlIO.java 6483 2007-07-18 03:19:18Z mmatthews $ * * @see java.sql.Connection */class MysqlIO {    protected static final int NULL_LENGTH = ~0;    protected static final int COMP_HEADER_LENGTH = 3;    protected static final int MIN_COMPRESS_LEN = 50;    protected static final int HEADER_LENGTH = 4;    protected static final int AUTH_411_OVERHEAD = 33;    private static int maxBufferSize = 65535;    private static final int CLIENT_COMPRESS = 32; /* Can use compression    protcol */    protected static final int CLIENT_CONNECT_WITH_DB = 8;    private static final int CLIENT_FOUND_ROWS = 2;    private static final int CLIENT_LOCAL_FILES = 128; /* Can use LOAD DATA    LOCAL */    /* Found instead of       affected rows */    private static final int CLIENT_LONG_FLAG = 4; /* Get all column flags */    private static final int CLIENT_LONG_PASSWORD = 1; /* new more secure    passwords */    private static final int CLIENT_PROTOCOL_41 = 512; // for > 4.1.1    private static final int CLIENT_INTERACTIVE = 1024;    protected static final int CLIENT_SSL = 2048;    private static final int CLIENT_TRANSACTIONS = 8192; // Client knows about transactions    protected static final int CLIENT_RESERVED = 16384; // for 4.1.0 only    protected static final int CLIENT_SECURE_CONNECTION = 32768;    private static final int CLIENT_MULTI_QUERIES = 65536; // Enable/disable multiquery support    private static final int CLIENT_MULTI_RESULTS = 131072; // Enable/disable multi-results    private static final int SERVER_STATUS_IN_TRANS = 1;    private static final int SERVER_STATUS_AUTOCOMMIT = 2; // Server in auto_commit mode    private static final int SERVER_MORE_RESULTS_EXISTS = 8; // Multi query - next query exists    private static final int SERVER_QUERY_NO_GOOD_INDEX_USED = 16;    private static final int SERVER_QUERY_NO_INDEX_USED = 32;	private static final int  SERVER_STATUS_CURSOR_EXISTS = 64;    private static final String FALSE_SCRAMBLE = "xxxxxxxx"; //$NON-NLS-1$    protected static final int MAX_QUERY_SIZE_TO_LOG = 1024; // truncate logging of queries at 1K    protected static final int MAX_QUERY_SIZE_TO_EXPLAIN = 1024 * 1024; // don't explain queries above 1MB    protected static final int INITIAL_PACKET_SIZE = 1024;    /**     * We store the platform 'encoding' here, only used to avoid munging     * filenames for LOAD DATA LOCAL INFILE...     */    private static String jvmPlatformCharset = null;        /**     * Are we using packed or unpacked binary result set rows?     */    private boolean binaryResultsAreUnpacked = true;    /**     * We need to have a 'marker' for all-zero datetimes so that ResultSet     * can decide what to do based on connection setting     */    protected final static String ZERO_DATE_VALUE_MARKER = "0000-00-00";    protected final static String ZERO_DATETIME_VALUE_MARKER = "0000-00-00 00:00:00";    static {        OutputStreamWriter outWriter = null;        //        // Use the I/O system to get the encoding (if possible), to avoid        // security restrictions on System.getProperty("file.encoding") in        // applets (why is that restricted?)        //        try {            outWriter = new OutputStreamWriter(new ByteArrayOutputStream());            jvmPlatformCharset = outWriter.getEncoding();        } finally {            try {                if (outWriter != null) {                    outWriter.close();                }            } catch (IOException ioEx) {                // ignore            }        }    }    /** Max number of bytes to dump when tracing the protocol */    private final static int MAX_PACKET_DUMP_LENGTH = 1024;    private boolean packetSequenceReset = false;    protected int serverCharsetIndex;    //    // Use this when reading in rows to avoid thousands of new()    // calls, because the byte arrays just get copied out of the    // packet anyway    //    private Buffer reusablePacket = null;    private Buffer sendPacket = null;    private Buffer sharedSendPacket = null;    /** Data to the server */    protected BufferedOutputStream mysqlOutput = null;    protected com.mysql.jdbc.Connection connection;    private Deflater deflater = null;    protected InputStream mysqlInput = null;    private LinkedList packetDebugRingBuffer = null;    private RowData streamingData = null;    /** The connection to the server */    protected Socket mysqlConnection = null;    private SocketFactory socketFactory = null;    //    // Packet used for 'LOAD DATA LOCAL INFILE'    //    // We use a SoftReference, so that we don't penalize intermittent    // use of this feature    //    private SoftReference loadFileBufRef;    //    // Used to send large packets to the server versions 4+    // We use a SoftReference, so that we don't penalize intermittent    // use of this feature    //    private SoftReference splitBufRef;    protected String host = null;    protected String seed;    private String serverVersion = null;    private String socketFactoryClassName = null;    private byte[] packetHeaderBuf = new byte[4];    private boolean colDecimalNeedsBump = false; // do we need to increment the colDecimal flag?    private boolean hadWarnings = false;    private boolean has41NewNewProt = false;    /** Does the server support long column info? */    private boolean hasLongColumnInfo = false;    private boolean isInteractiveClient = false;    private boolean logSlowQueries = false;    /**     * Does the character set of this connection match the character set of the     * platform     */    private boolean platformDbCharsetMatches = true; // changed once we've connected.    private boolean profileSql = false;    private boolean queryBadIndexUsed = false;    private boolean queryNoIndexUsed = false;    /** Should we use 4.1 protocol extensions? */    private boolean use41Extensions = false;    private boolean useCompression = false;    private boolean useNewLargePackets = false;    private boolean useNewUpdateCounts = false; // should we use the new larger update counts?    private byte packetSequence = 0;    private byte readPacketSequence = -1;    private boolean checkPacketSequence = false;    byte protocolVersion = 0;    private int maxAllowedPacket = 1024 * 1024;    protected int maxThreeBytes = 255 * 255 * 255;    protected int port = 3306;    protected int serverCapabilities;    private int serverMajorVersion = 0;    private int serverMinorVersion = 0;    private int serverStatus = 0;    private int serverSubMinorVersion = 0;    private int warningCount = 0;    protected long clientParam = 0;    protected long lastPacketSentTimeMs = 0;    private boolean traceProtocol = false;    private boolean enablePacketDebug = false;    private Calendar sessionCalendar;	private boolean useConnectWithDb;	private boolean needToGrabQueryFromPacket;	private boolean autoGenerateTestcaseScript;	private long threadId;	private boolean useNanosForElapsedTime;	private long slowQueryThreshold;	private String queryTimingUnits;	    /**     * Constructor:  Connect to the MySQL server and setup a stream connection.     *     * @param host the hostname to connect to     * @param port the port number that the server is listening on     * @param props the Properties from DriverManager.getConnection()     * @param socketFactoryClassName the socket factory to use     * @param conn the Connection that is creating us     * @param socketTimeout the timeout to set for the socket (0 means no     *        timeout)     *     * @throws IOException if an IOException occurs during connect.     * @throws SQLException if a database access error occurs.     */    public MysqlIO(String host, int port, Properties props,			String socketFactoryClassName, com.mysql.jdbc.Connection conn,			int socketTimeout) throws IOException, SQLException {		this.connection = conn;		if (this.connection.getEnablePacketDebug()) {			this.packetDebugRingBuffer = new LinkedList();		}		this.logSlowQueries = this.connection.getLogSlowQueries();		this.reusablePacket = new Buffer(INITIAL_PACKET_SIZE);		this.sendPacket = new Buffer(INITIAL_PACKET_SIZE);		this.port = port;		this.host = host;		this.socketFactoryClassName = socketFactoryClassName;		this.socketFactory = createSocketFactory();		this.mysqlConnection = this.socketFactory.connect(this.host, this.port,				props);		if (socketTimeout != 0) {			try {				this.mysqlConnection.setSoTimeout(socketTimeout);			} catch (Exception ex) {				/* Ignore if the platform does not support it */				;			}		}		this.mysqlConnection = this.socketFactory.beforeHandshake();		if (this.connection.getUseReadAheadInput()) {			this.mysqlInput = new ReadAheadInputStream(this.mysqlConnection					.getInputStream(), 16384, this.connection					.getTraceProtocol(), this.connection.getLog());		} else if (this.connection.useUnbufferedInput()) {			this.mysqlInput = this.mysqlConnection.getInputStream();		} else {			this.mysqlInput = new BufferedInputStream(this.mysqlConnection					.getInputStream(), 16384);		}		this.mysqlOutput = new BufferedOutputStream(this.mysqlConnection				.getOutputStream(), 16384);		this.isInteractiveClient = this.connection.getInteractiveClient();		this.profileSql = this.connection.getProfileSql();		this.sessionCalendar = Calendar.getInstance();		this.autoGenerateTestcaseScript = this.connection				.getAutoGenerateTestcaseScript();		this.needToGrabQueryFromPacket = (this.profileSql				|| this.logSlowQueries || this.autoGenerateTestcaseScript);		if (this.connection.getUseNanosForElapsedTime()				&& Util.nanoTimeAvailable()) {			this.useNanosForElapsedTime = true;			this.queryTimingUnits = Messages.getString("Nanoseconds");		} else {			this.queryTimingUnits = Messages.getString("Milliseconds");		}		if (this.connection.getLogSlowQueries()) {			calculateSlowQueryThreshold();		}	}    /**	 * Does the server send back extra column info?	 * 	 * @return true if so	 */    public boolean hasLongColumnInfo() {        return this.hasLongColumnInfo;    }    protected boolean isDataAvailable() throws SQLException {        try {            return this.mysqlInput.available() > 0;        } catch (IOException ioEx) {            throw new CommunicationsException(this.connection,                this.lastPacketSentTimeMs, ioEx);        }    }    /**     * DOCUMENT ME!     *     * @return Returns the lastPacketSentTimeMs.     */    protected long getLastPacketSentTimeMs() {        return this.lastPacketSentTimeMs;    }    /**     * Build a result set. Delegates to buildResultSetWithRows() to build a     * JDBC-version-specific ResultSet, given rows as byte data, and field     * information.     *     * @param callingStatement DOCUMENT ME!     * @param columnCount the number of columns in the result set     * @param maxRows the maximum number of rows to read (-1 means all rows)     * @param resultSetType (TYPE_FORWARD_ONLY, TYPE_SCROLL_????)     * @param resultSetConcurrency the type of result set (CONCUR_UPDATABLE or     *        READ_ONLY)     * @param streamResults should the result set be read all at once, or     *        streamed?     * @param catalog the database name in use when the result set was created     * @param isBinaryEncoded is this result set in native encoding?     * @param unpackFieldInfo should we read MYSQL_FIELD info (if available)?     *     * @return a result set     *     * @throws SQLException if a database access error occurs     */    protected ResultSet getResultSet(Statement callingStatement,

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产精品麻豆| 精品日韩一区二区三区 | 欧美视频中文字幕| 在线不卡免费欧美| 国产精品网站导航| 免费在线观看日韩欧美| www..com久久爱| 日韩精品影音先锋| 玉米视频成人免费看| 国产大陆a不卡| 日韩视频免费观看高清在线视频| 一区二区三区国产| eeuss国产一区二区三区| 精品久久国产老人久久综合| 亚洲一区二区三区四区在线观看 | 国产精品看片你懂得| 美女视频黄免费的久久 | 91久久国产最好的精华液| 国产午夜亚洲精品羞羞网站| 久久99国产精品免费| 欧美日韩激情一区二区| 亚洲精选在线视频| 色综合天天综合| 国产精品久久久久久久浪潮网站 | 久久99精品国产| 宅男噜噜噜66一区二区66| 一区二区在线观看视频在线观看| 国产精品2024| 久久―日本道色综合久久| 极品美女销魂一区二区三区| 日韩一区二区电影| 日韩精品一二三四| 欧美丰满少妇xxxxx高潮对白| 亚洲一区二区三区四区在线观看| 欧美最新大片在线看| 一区二区三区蜜桃| 在线观看国产精品网站| 亚洲一区二区偷拍精品| 91黄色在线观看| 亚洲一区二区成人在线观看| 欧美性猛交xxxxxx富婆| 午夜一区二区三区视频| 91精品国产综合久久久久| 奇米888四色在线精品| 精品国产一区二区在线观看| 国产在线视频不卡二| 久久久不卡网国产精品二区| 成人妖精视频yjsp地址| 亚洲免费观看高清完整版在线观看熊 | 亚洲黄色尤物视频| 欧美熟乱第一页| 男女男精品网站| 久久久91精品国产一区二区三区| 国产成人在线视频免费播放| 136国产福利精品导航| 欧美这里有精品| 亚洲二区视频在线| 日韩一区二区精品葵司在线| 国产在线一区观看| 一区二区三区资源| 日韩欧美第一区| 一本色道久久综合精品竹菊| 亚洲电影欧美电影有声小说| 日韩欧美电影一二三| 成人黄色在线网站| 日韩高清不卡一区| 国产精品美女久久久久久| 欧美伊人久久久久久久久影院| 蜜臂av日日欢夜夜爽一区| 国产亚洲欧美日韩在线一区| 欧美在线免费播放| 国产一区二区三区在线观看免费 | 欧美精品亚洲一区二区在线播放| 久久er精品视频| 综合亚洲深深色噜噜狠狠网站| 欧美日韩精品一区二区三区四区 | 日本电影欧美片| 国产一区视频在线看| 一区二区三区在线观看动漫| 精品国产91亚洲一区二区三区婷婷 | 日韩av在线播放中文字幕| 久久久久高清精品| 91精品国产91久久久久久最新毛片 | 欧美群妇大交群的观看方式| 国产成人在线色| 免费欧美日韩国产三级电影| 亚洲视频一区二区在线| 久久精品亚洲精品国产欧美| 欧美亚洲综合一区| www.99精品| 国产精品69毛片高清亚洲| 秋霞午夜av一区二区三区| 亚洲三级免费观看| 国产欧美日韩在线| 精品国产91久久久久久久妲己| 在线播放国产精品二区一二区四区| 成人免费毛片aaaaa**| 国产中文字幕精品| 久久成人精品无人区| 午夜精品国产更新| 亚洲综合av网| 国产日韩欧美精品综合| 精品国产第一区二区三区观看体验| 欧美卡1卡2卡| 欧美日韩午夜精品| 色久优优欧美色久优优| 91农村精品一区二区在线| 波多野结衣视频一区| 国产99久久精品| 国产精品1区2区3区| 国产乱码字幕精品高清av| 久久国产精品99久久人人澡| 免费在线欧美视频| 美女视频免费一区| 另类人妖一区二区av| 美女一区二区三区在线观看| 日韩av一区二区三区| 日本强好片久久久久久aaa| 婷婷国产在线综合| 日韩av电影一区| 老司机精品视频在线| 免费观看30秒视频久久| 日本美女一区二区三区| 日韩精品国产欧美| 蜜臀久久久99精品久久久久久| 久久国产精品99久久人人澡| 国产一区在线精品| 粉嫩一区二区三区性色av| 国产成人无遮挡在线视频| 成人午夜视频网站| 欧美在线观看视频一区二区三区| 欧美日本韩国一区二区三区视频 | 91社区在线播放| 欧美亚洲国产一区二区三区va| 欧美日韩www| 精品久久人人做人人爰| 国产日产欧产精品推荐色| 中文字幕一区二区三区在线观看 | 色婷婷国产精品| 欧美日韩电影一区| 67194成人在线观看| 久久麻豆一区二区| 一区二区三区在线视频免费观看| 亚洲高清视频的网址| 国产综合久久久久久久久久久久| 国产aⅴ综合色| 精品视频999| 久久影音资源网| 成人欧美一区二区三区小说 | 884aa四虎影成人精品一区| 欧美成va人片在线观看| 国产精品久久久久久妇女6080| 一区二区免费在线播放| 九九九精品视频| 色丁香久综合在线久综合在线观看| 欧美高清性hdvideosex| 欧美国产精品专区| 日本女人一区二区三区| 91一区二区三区在线观看| 欧美一区二区三区在| 一区精品在线播放| 美女久久久精品| 一本大道久久a久久综合婷婷| 日韩网站在线看片你懂的| 亚洲免费看黄网站| 国产成人综合亚洲网站| 91精品国产综合久久香蕉的特点 | 国产欧美精品在线观看| 天天色综合天天| 94色蜜桃网一区二区三区| 精品卡一卡二卡三卡四在线| 亚洲第一狼人社区| www.亚洲精品| 久久午夜老司机| 毛片一区二区三区| 欧美四级电影网| 亚洲欧美二区三区| 国产成人免费高清| 亚洲精品在线观看网站| 日日骚欧美日韩| 欧美视频一区在线| 亚洲免费在线看| 99久久伊人精品| 欧美极品少妇xxxxⅹ高跟鞋 | 色综合色综合色综合 | 成人app下载| 国产日韩欧美制服另类| 久久99国产精品尤物| 欧美一区二区三级| 亚洲成人中文在线| 在线观看中文字幕不卡| 国产精品成人免费在线| 成人美女视频在线观看18| 国产夜色精品一区二区av| 黑人巨大精品欧美一区| 精品久久五月天| 国产麻豆日韩欧美久久| 精品乱码亚洲一区二区不卡| 国精产品一区一区三区mba桃花 | 国产福利91精品一区|