亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
夜夜嗨av一区二区三区四季av| 亚洲私人影院在线观看| 高潮精品一区videoshd| 亚洲人妖av一区二区| 4438成人网| 成人午夜又粗又硬又大| 亚洲成av人影院在线观看网| 久久久影院官网| 欧美日韩一区二区电影| 国产盗摄视频一区二区三区| 亚洲三级久久久| 日韩免费看的电影| 色噜噜狠狠一区二区三区果冻| 久久精工是国产品牌吗| 亚洲欧美综合色| 精品剧情在线观看| 欧美亚洲一区二区在线观看| 国产高清久久久| 日韩经典中文字幕一区| 亚洲欧美在线观看| 26uuu色噜噜精品一区| 成人a区在线观看| 免费观看91视频大全| 亚洲综合免费观看高清完整版在线| 国产人成一区二区三区影院| 日韩午夜精品电影| 欧美日韩国产123区| 国产精华液一区二区三区| **性色生活片久久毛片| 久久精品夜色噜噜亚洲aⅴ| 欧美日韩国产三级| 国产精品99精品久久免费| 日韩avvvv在线播放| 亚洲自拍偷拍av| 国产精品天天看| 26uuu精品一区二区三区四区在线 26uuu精品一区二区在线观看 | 国内精品在线播放| 午夜成人免费视频| 亚洲最大的成人av| 亚洲精品写真福利| 综合久久给合久久狠狠狠97色| 国产三级精品视频| 久久免费精品国产久精品久久久久| 6080亚洲精品一区二区| 成人aa视频在线观看| 国产一二三精品| 亚洲va国产va欧美va观看| 一区二区久久久久久| 亚洲乱码国产乱码精品精可以看| 国产精品美女视频| 国产精品视频看| 欧美国产精品一区二区三区| 国产精品全国免费观看高清| 日产精品久久久久久久性色| 五月天国产精品| 韩国精品免费视频| 成人av中文字幕| 欧日韩精品视频| 666欧美在线视频| 国产性做久久久久久| 亚洲免费视频中文字幕| 日韩和欧美一区二区| 国产精品一区在线观看乱码| 99久久777色| 欧美一级日韩免费不卡| 国产日产欧美一区| 亚洲一二三四久久| 国产中文字幕一区| 91行情网站电视在线观看高清版| 91精品国产91久久综合桃花 | 亚洲黄色免费电影| 日韩二区在线观看| 成人三级伦理片| 欧美日韩免费不卡视频一区二区三区| 欧美变态tickle挠乳网站| 国产精品美女久久久久久久久| 亚洲自拍偷拍欧美| 国产精品亚洲视频| 在线视频欧美精品| 久久伊99综合婷婷久久伊| 一区二区三区久久久| 久久精品国产77777蜜臀| 99久久久国产精品免费蜜臀| 91麻豆精品国产91久久久久| 亚洲国产高清aⅴ视频| 图片区小说区区亚洲影院| 国产乱码精品一品二品| 欧美视频日韩视频| 欧美高清在线精品一区| 青娱乐精品视频在线| 91在线视频网址| 欧美精品一区视频| 天天综合网 天天综合色| 国产成人午夜电影网| 欧美男同性恋视频网站| 国产精品美女久久久久久久| 美女久久久精品| 91极品视觉盛宴| 国产女同互慰高潮91漫画| 男女性色大片免费观看一区二区 | 日韩一区二区三区视频在线| 亚洲婷婷综合久久一本伊一区| 奇米影视一区二区三区| 在线一区二区三区做爰视频网站| 精品美女在线播放| 亚洲aⅴ怡春院| 91首页免费视频| 国产日韩欧美麻豆| 精品一区二区精品| 丝袜国产日韩另类美女| 最近日韩中文字幕| 成人精品鲁一区一区二区| 日韩精品资源二区在线| 丝袜美腿亚洲综合| 欧美天天综合网| 一区二区三区精品在线| 不卡欧美aaaaa| 日本一区二区三区电影| 黄色精品一二区| 日韩欧美高清在线| 奇米在线7777在线精品| 91精品国产综合久久精品性色| 亚洲精品免费在线| 在线亚洲精品福利网址导航| 亚洲天堂a在线| 91久久精品一区二区三区| 亚洲乱码国产乱码精品精的特点| 91网站黄www| 一区二区三区四区不卡视频| 色又黄又爽网站www久久| 亚洲免费伊人电影| 在线观看欧美日本| 午夜日韩在线电影| 欧美日韩亚洲高清一区二区| 亚洲一区免费在线观看| 欧美调教femdomvk| 亚洲电影在线免费观看| 欧美精品久久99久久在免费线| 性欧美疯狂xxxxbbbb| 欧美人狂配大交3d怪物一区| 日本一道高清亚洲日美韩| 欧美一级午夜免费电影| 黄色日韩网站视频| 中文字幕不卡一区| 91啪九色porn原创视频在线观看| 亚洲欧美日韩在线播放| 欧美中文字幕一区二区三区亚洲| 婷婷亚洲久悠悠色悠在线播放| 欧美一区二区在线观看| 国模套图日韩精品一区二区| 日本一区二区三区国色天香| av电影在线观看一区| 一区二区三区中文字幕电影| 欧美性极品少妇| 久久精品免费观看| 欧美激情一区二区在线| 97aⅴ精品视频一二三区| 亚洲成人av一区| 日韩免费高清av| 成人精品视频一区二区三区| 一级做a爱片久久| 欧美一区二区在线视频| 国产精品综合一区二区| 中文字幕在线播放不卡一区| 欧美日韩高清一区二区不卡| 精品一区二区三区免费播放| 日本一区二区三区国色天香| 日本福利一区二区| 久久99这里只有精品| 国产精品全国免费观看高清| 精品视频在线视频| 国产一区二区成人久久免费影院| 综合激情网...| 日韩欧美一级片| 成人福利视频在线| 日韩中文字幕区一区有砖一区| 久久嫩草精品久久久精品一| 91久久精品网| 国产一区二区三区免费观看| 亚洲黄色尤物视频| 精品国产91久久久久久久妲己| 91亚洲精品一区二区乱码| 日韩二区在线观看| 亚洲美女屁股眼交3| 日韩免费高清电影| 欧美系列一区二区| 成人网页在线观看| 久久成人av少妇免费| 一区二区日韩av| 国产精品久久久久久久久搜平片 | xfplay精品久久| 欧美图区在线视频| 99久久综合精品| 精油按摩中文字幕久久| 亚洲一区二区精品久久av| 久久久欧美精品sm网站| 欧美久久婷婷综合色| 91蜜桃在线观看| 国产一区二区免费视频| 日韩国产高清在线|