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

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

?? statement.java

?? mysql jdbc驅動程序 mysql jdbc驅動程序 mysql jdbc驅動程序 mysql jdbc驅動程序
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
								int[] newUpdateCounts = new int[commandIndex];								System.arraycopy(updateCounts, 0,										newUpdateCounts, 0, commandIndex);								throw new java.sql.BatchUpdateException(ex										.getMessage(), ex.getSQLState(), ex										.getErrorCode(), newUpdateCounts);							}						}					}					if (sqlEx != null) {						throw new java.sql.BatchUpdateException(sqlEx								.getMessage(), sqlEx.getSQLState(), sqlEx								.getErrorCode(), updateCounts);					}				}				return (updateCounts != null) ? updateCounts : new int[0];			} finally {				this.retrieveGeneratedKeys = false;								clearBatch();			}		}	}	/**	 * Rewrites batch into a single query to send to the server. This method	 * will constrain each batch to be shorter than max_allowed_packet on the	 * server.	 * 	 * @return update counts in the same manner as executeBatch()	 * @throws SQLException	 */	private int[] executeBatchUsingMultiQueries(boolean multiQueriesEnabled,			int nbrCommands) throws SQLException {		Connection locallyScopedConn = this.connection;				if (!multiQueriesEnabled) {			locallyScopedConn.getIO().enableMultiQueries();		}		java.sql.Statement batchStmt = null;				try {			int[] updateCounts = new int[nbrCommands];			for (int i = 0; i < nbrCommands; i++) {				updateCounts[i] = -3;			}			int commandIndex = 0;			StringBuffer queryBuf = new StringBuffer();									batchStmt = locallyScopedConn.createStatement();						int counter = 0;			int numberOfBytesPerChar = 1;			String connectionEncoding = locallyScopedConn.getEncoding();			if (StringUtils.startsWithIgnoreCase(connectionEncoding, "utf")) {				numberOfBytesPerChar = 3;			} else if (CharsetMapping.isMultibyteCharset(connectionEncoding)) {				numberOfBytesPerChar = 2;			}			int escapeAdjust = 1;						if (this.doEscapeProcessing) {				escapeAdjust = 2; /* We assume packet _could_ grow by this amount, as we're not				                     sure how big statement will end up after				                     escape processing */			}						for (commandIndex = 0; commandIndex < nbrCommands; commandIndex++) {				String nextQuery = (String) this.batchedArgs.get(commandIndex);				if (((((queryBuf.length() + nextQuery.length())						* numberOfBytesPerChar) + 1 /* for semicolon */ 						+ MysqlIO.HEADER_LENGTH) * escapeAdjust)  + 32 > this.connection						.getMaxAllowedPacket()) {					batchStmt.execute(queryBuf.toString());					updateCounts[counter++] = batchStmt.getUpdateCount();					long generatedKeyStart = ((com.mysql.jdbc.Statement)batchStmt).getLastInsertID();					byte[][] row = new byte[1][];					row[0] = Long.toString(generatedKeyStart++).getBytes();					this.batchedGeneratedKeys.add(row);					while (batchStmt.getMoreResults()							|| batchStmt.getUpdateCount() != -1) {						updateCounts[counter++] = batchStmt.getUpdateCount();						row = new byte[1][];						row[0] = Long.toString(generatedKeyStart++).getBytes();						this.batchedGeneratedKeys.add(row);					}					queryBuf = new StringBuffer();				}				queryBuf.append(nextQuery);				queryBuf.append(";");			}			if (queryBuf.length() > 0) {				batchStmt.execute(queryBuf.toString());				long generatedKeyStart = ((com.mysql.jdbc.Statement)batchStmt).getLastInsertID();				byte[][] row = new byte[1][];				row[0] = Long.toString(generatedKeyStart++).getBytes();				this.batchedGeneratedKeys.add(row);								updateCounts[counter++] = batchStmt.getUpdateCount();				while (batchStmt.getMoreResults()						|| batchStmt.getUpdateCount() != -1) {					updateCounts[counter++] = batchStmt.getUpdateCount();					row = new byte[1][];					row[0] = Long.toString(generatedKeyStart++).getBytes();					this.batchedGeneratedKeys.add(row);				}			}			return (updateCounts != null) ? updateCounts : new int[0];		} finally {			try {				if (batchStmt != null) {					batchStmt.close();				}			} finally {				if (!multiQueriesEnabled) {					locallyScopedConn.getIO().disableMultiQueries();				}			}		}	}		/**	 * Execute a SQL statement that retruns a single ResultSet	 * 	 * @param sql	 *            typically a static SQL SELECT statement	 * 	 * @return a ResulSet that contains the data produced by the query	 * 	 * @exception SQLException	 *                if a database access error occurs	 */	public java.sql.ResultSet executeQuery(String sql)			throws SQLException {		checkClosed();				Connection locallyScopedConn = this.connection;				synchronized (locallyScopedConn.getMutex()) {			synchronized (this.cancelTimeoutMutex) {				this.wasCancelled = false;			}				checkNullOrEmptyQuery(sql);			if (this.doEscapeProcessing) {				Object escapedSqlResult = EscapeProcessor.escapeSQL(sql,						locallyScopedConn.serverSupportsConvertFn(), this.connection);					if (escapedSqlResult instanceof String) {					sql = (String) escapedSqlResult;				} else {					sql = ((EscapeProcessorResult) escapedSqlResult).escapedSql;				}			}				char firstStatementChar = StringUtils.firstNonWsCharUc(sql, 					findStartOfStatement(sql));				if (sql.charAt(0) == '/') {				if (sql.startsWith(PING_MARKER)) {					doPingInstead();									return this.results;				}			}						checkForDml(sql, firstStatementChar);				if (this.results != null) {				if (!locallyScopedConn.getHoldResultsOpenOverStatementClose()) {					this.results.realClose(false);				}			}				CachedResultSetMetaData cachedMetaData = null;				// If there isn't a limit clause in the SQL			// then limit the number of rows to return in			// an efficient manner. Only do this if			// setMaxRows() hasn't been used on any Statements			// generated from the current Connection (saves			// a query, and network traffic).						if (useServerFetch()) {				this.results = createResultSetUsingServerFetch(sql);				return this.results;			}			CancelTask timeoutTask = null;						String oldCatalog = null;						try {				if (locallyScopedConn.getEnableQueryTimeouts() &&						this.timeoutInMillis != 0						&& locallyScopedConn.versionMeetsMinimum(5, 0, 0)) {					timeoutTask = new CancelTask();					Connection.getCancelTimer().schedule(timeoutTask, 							this.timeoutInMillis);				}				if (!locallyScopedConn.getCatalog().equals(this.currentCatalog)) {					oldCatalog = locallyScopedConn.getCatalog();					locallyScopedConn.setCatalog(this.currentCatalog);				}				//				// Check if we have cached metadata for this query...				//				if (locallyScopedConn.getCacheResultSetMetadata()) {					cachedMetaData = locallyScopedConn.getCachedMetaData(sql);				}				if (locallyScopedConn.useMaxRows()) {					// We need to execute this all together					// So synchronize on the Connection's mutex (because					// even queries going through there synchronize					// on the connection					if (StringUtils.indexOfIgnoreCase(sql, "LIMIT") != -1) { //$NON-NLS-1$						this.results = locallyScopedConn.execSQL(this, sql,								this.maxRows, null, this.resultSetType,								this.resultSetConcurrency,								createStreamingResultSet(),								this.currentCatalog, (cachedMetaData == null));					} else {						if (this.maxRows <= 0) {							locallyScopedConn									.execSQL(											this,											"SET OPTION SQL_SELECT_LIMIT=DEFAULT", -1, null, //$NON-NLS-1$											java.sql.ResultSet.TYPE_FORWARD_ONLY,											java.sql.ResultSet.CONCUR_READ_ONLY,											false, this.currentCatalog,											true); //$NON-NLS-1$						} else {							locallyScopedConn									.execSQL(											this,											"SET OPTION SQL_SELECT_LIMIT=" + this.maxRows, -1, //$NON-NLS-1$											null,											java.sql.ResultSet.TYPE_FORWARD_ONLY,											java.sql.ResultSet.CONCUR_READ_ONLY,											false, this.currentCatalog,											true); //$NON-NLS-1$						}						this.results = locallyScopedConn.execSQL(this, sql, -1,								null, this.resultSetType,								this.resultSetConcurrency,								createStreamingResultSet(),								this.currentCatalog, (cachedMetaData == null));						if (oldCatalog != null) {							locallyScopedConn.setCatalog(oldCatalog);						}					}				} else {					this.results = locallyScopedConn.execSQL(this, sql, -1, null,							this.resultSetType, this.resultSetConcurrency,							createStreamingResultSet(),							this.currentCatalog, (cachedMetaData == null));				}				if (timeoutTask != null) {					if (timeoutTask.caughtWhileCancelling != null) {						throw timeoutTask.caughtWhileCancelling;					}										timeoutTask.cancel();					timeoutTask = null;				}								synchronized (this.cancelTimeoutMutex) {					if (this.wasCancelled) {						this.wasCancelled = false;						throw new MySQLTimeoutException();					}				}			} finally {				if (timeoutTask != null) {					timeoutTask.cancel();				}								if (oldCatalog != null) {					locallyScopedConn.setCatalog(oldCatalog);				}			}			this.lastInsertId = this.results.getUpdateID();			if (cachedMetaData != null) {				locallyScopedConn.initializeResultsMetadataFromCache(sql, cachedMetaData,						this.results);			} else {				if (this.connection.getCacheResultSetMetadata()) {					locallyScopedConn.initializeResultsMetadataFromCache(sql,							null /* will be created */, this.results);				}			}						return this.results;		}	}	protected void doPingInstead() throws SQLException {		if (this.pingTarget != null) {			this.pingTarget.doPing();		} else {			this.connection.ping();		}		ResultSet fakeSelectOneResultSet = generatePingResultSet();		this.results = fakeSelectOneResultSet;	}	protected ResultSet generatePingResultSet() throws SQLException {		Field[] fields = { new Field(null, "1", Types.BIGINT, 1) };		ArrayList rows = new ArrayList();		byte[] colVal = new byte[] { (byte) '1' };		rows.add(new byte[][] { colVal });		return (ResultSet) DatabaseMetaData.buildResultSet(fields, rows,				this.connection);	}	/**	 * Execute a SQL INSERT, UPDATE or DELETE statement. In addition SQL	 * statements that return nothing such as SQL DDL statements can be executed	 * Any IDs generated for AUTO_INCREMENT fields can be retrieved by casting	 * this Statement to org.gjt.mm.mysql.Statement and calling the	 * getLastInsertID() method.	 * 	 * @param sql	 *            a SQL statement	 * 	 * @return either a row count, or 0 for SQL commands	 * 	 * @exception SQLException	 *                if a database access error occurs	 */	public int executeUpdate(String sql) throws SQLException {		return executeUpdate(sql, false);	}	protected int executeUpdate(String sql, boolean isBatch)			throws SQLException {		checkClosed();				Connection locallyScopedConn = this.connection;				char firstStatementChar = StringUtils.firstNonWsCharUc(sql,				findStartOfStatement(sql));		ResultSet rs = null;		synchronized (locallyScopedConn.getMutex()) {			synchronized (this.cancelTimeoutMutex) {				this.wasCancelled = false;			}				checkNullOrEmptyQuery(sql);			if (this.doEscapeProcessing) {				Object escapedSqlResult = EscapeProcessor.escapeSQL(sql,						this.connection.serverSupportsConvertFn(), this.connection);				if (escapedSqlResult instanceof String) {					sql = (String) escapedSqlResult;				} else {					sql = ((EscapeProcessorResult) escapedSqlResult).escapedSql;				}			}						if (locallyScopedConn.isReadOnly()) {				throw SQLError.createSQLException(Messages						.getString("Statement.42") //$NON-NLS-1$						+ Messages.getString("Statement.43"), //$NON-NLS-1$						SQLError.SQL_STATE_ILLEGAL_ARGUMENT); //$NON-NLS-1$			}				if (StringUtils.startsWithIgnoreCaseAndWs(sql, "select")) { //$NON-NLS-1$				throw SQLError.createSQLException(Messages						.getString("Statement.46"), //$NON-NLS-1$						"01S03"); //$NON-NLS-1$			}				if (this.results != null) {				if (!locallyScopedConn.getHoldResultsOpenOverStatementClose()) {					this.results.realClose(false);				}			}				// The checking and changing of catalogs			// must happen in sequence, so synchronize			// on the same mutex that _conn is using					CancelTask timeoutTask = null;						String oldCatalog = null;						try {				if (locallyScopedConn.getEnableQueryTimeouts() &&						this.timeoutInMillis != 0						&& locallyScopedConn.versionMeetsMinimum(5, 0, 0)) {					timeoutTask = new CancelTask();					Connection.getCancelTimer().schedule(timeoutTask, 							this.timeoutInMillis);				}				if (!locallyScopedConn.getCatalog().equals(this.currentCatalog)) {					oldCatalog = locallyScopedConn.getCatalog();					locallyScopedConn.setCatalog(this.currentCatalog);				}				//				// Only apply max_rows to selects				//				if (locallyScopedConn.useMaxRows()) {					locallyScopedConn.execSQL(							this,							"SET OPTION SQL_SELECT_LIMIT=DEFAULT", //$NON-NLS-1$							-1, null, java.sql.ResultSet.TYPE_FORWARD_ONLY,							java.sql.ResultSet.CONCUR_READ_ONLY, false,							this.currentCatalog, true);				}				rs = locallyScopedConn.execSQL(this, sql, -1, null,						java.sql.ResultSet.TYPE_FORWARD_ONLY,						java.sql.ResultSet.CONCUR_READ_ONLY, false,						this.currentCatalog,						true /* force read of field info on DML */,						isBatch);								if (timeoutTask != null) {					if (timeoutTask.caughtWhileCancelling != null) {						throw timeoutTask.caughtWhileCancelling;					}										timeoutTask.cancel();					timeoutTask = null;				}				synchronized (this.cancelTimeoutMutex) {					if (this.wasCancelled) {						this.wasCancelled = false;						throw new MySQLTimeoutException();					}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产一区久久久| 中文字幕在线一区免费| 日本vs亚洲vs韩国一区三区 | 日本大香伊一区二区三区| 成人欧美一区二区三区黑人麻豆| 粉嫩一区二区三区在线看| 国产精品高潮呻吟久久| 91高清在线观看| 青青草原综合久久大伊人精品优势 | 久久99国产精品麻豆| 久久伊人中文字幕| 99热99精品| 亚洲777理论| 久久蜜桃一区二区| 99国产精品99久久久久久| 亚洲一区中文在线| 欧美成人a在线| 不卡的看片网站| 亚洲成a天堂v人片| 久久久精品影视| 欧美日韩在线播| 国产精品18久久久久久久久久久久 | 国产精品国产三级国产普通话蜜臀| 91女神在线视频| 裸体一区二区三区| 自拍偷拍亚洲激情| 日韩精品一区二区三区在线| aa级大片欧美| 美国十次综合导航| 亚洲精品成人悠悠色影视| 日韩欧美亚洲一区二区| 97精品国产露脸对白| 另类欧美日韩国产在线| 亚洲麻豆国产自偷在线| 久久综合狠狠综合| 欧美日韩久久久一区| 成人福利视频在线看| 男女性色大片免费观看一区二区| 中文字幕不卡在线| 精品国产亚洲在线| 欧美日韩国产美女| 91丝袜国产在线播放| 韩国av一区二区三区四区| 亚洲国产成人91porn| 国产精品毛片a∨一区二区三区| 日韩一区二区三区免费看| 99re这里只有精品视频首页| 国内精品视频一区二区三区八戒| 天天影视色香欲综合网老头| 中文字幕不卡在线| 久久久久久久综合狠狠综合| 欧美久久久久久久久中文字幕| 成人av网在线| 国产剧情一区在线| 精品一区二区三区免费毛片爱| 亚洲国产成人tv| 亚洲综合精品久久| 亚洲人123区| 中文字幕一区二区三区乱码在线 | 亚洲美女淫视频| 国产精品国产精品国产专区不片| 久久综合国产精品| 日韩视频中午一区| 欧美一区二区三区系列电影| 欧美在线一区二区三区| av中文字幕不卡| k8久久久一区二区三区 | 久久九九全国免费| 久久噜噜亚洲综合| 精品久久久久久久久久久久久久久久久 | 久久噜噜亚洲综合| 26uuu久久天堂性欧美| 日韩三级av在线播放| 欧美日韩精品综合在线| 欧美日韩美少妇| 欧美男男青年gay1069videost| 欧美日韩中文另类| 欧美日韩国产一区| 欧美一区二区三区视频| 日韩亚洲欧美成人一区| 欧美成人三级电影在线| 日韩欧美一区在线观看| 精品蜜桃在线看| 26uuu精品一区二区| 久久九九全国免费| 中文字幕一区在线观看| 亚洲精品国产一区二区精华液 | 91精品国产麻豆国产自产在线| 在线不卡免费欧美| 精品动漫一区二区三区在线观看| 国产亲近乱来精品视频| 中文字幕成人av| 一区二区三区在线视频观看58| 午夜在线电影亚洲一区| 免费亚洲电影在线| 国产成人精品免费视频网站| 成人h版在线观看| 欧美性受xxxx| 欧美成人精精品一区二区频| 国产欧美精品一区二区色综合| 亚洲色图一区二区| 视频在线观看一区| 国产精品自产自拍| 色久优优欧美色久优优| 欧美一区三区二区| 国产欧美精品一区二区色综合| 亚洲免费av在线| 麻豆91免费观看| 99久久久久久| 日韩三级视频中文字幕| 国产精品久久久久影院| 亚洲va欧美va天堂v国产综合| 国产在线视频一区二区| 色先锋久久av资源部| 日韩欧美不卡一区| 亚洲色图清纯唯美| 美国毛片一区二区三区| 91丨九色丨国产丨porny| 91精品国产乱| 亚洲色图欧美激情| 蓝色福利精品导航| 在线免费观看成人短视频| 久久综合久色欧美综合狠狠| 亚洲一卡二卡三卡四卡| 国产69精品久久777的优势| 欧美撒尿777hd撒尿| 日本一区二区免费在线观看视频 | 日本大胆欧美人术艺术动态| 成人av免费在线观看| 日韩欧美成人一区二区| 亚洲综合图片区| 成人中文字幕合集| 精品国产青草久久久久福利| 一区二区三区四区视频精品免费| 国产剧情在线观看一区二区| 欧美日韩精品高清| 亚洲色图欧美偷拍| 丁香婷婷综合激情五月色| 欧美成va人片在线观看| 亚洲一区二区四区蜜桃| 成人中文字幕电影| 精品裸体舞一区二区三区| 亚洲 欧美综合在线网络| 91麻豆精东视频| 国产精品的网站| 国产91丝袜在线观看| 精品欧美一区二区久久| 亚洲电影在线播放| 色哟哟精品一区| 亚洲视频每日更新| av中文字幕在线不卡| 国产精品美女久久久久久久久久久| 久久9热精品视频| 日韩一区二区电影网| 首页国产丝袜综合| 欧美日韩激情在线| 亚洲成年人网站在线观看| 欧美在线观看视频在线| 亚洲精品视频在线观看网站| 97精品国产露脸对白| 亚洲欧洲精品一区二区精品久久久| 国产成人鲁色资源国产91色综 | 17c精品麻豆一区二区免费| 国产91丝袜在线播放0| 久久久久国产精品免费免费搜索| 国产一区在线观看麻豆| 久久久99久久| 成人久久久精品乱码一区二区三区| 久久久噜噜噜久久中文字幕色伊伊 | 久久综合久久鬼色中文字| 蜜臀久久99精品久久久久宅男 | 日本一区二区免费在线观看视频| 国产电影精品久久禁18| 国产午夜亚洲精品理论片色戒| 国产不卡免费视频| 亚洲欧洲日韩在线| 欧美中文字幕一区二区三区亚洲 | 久草热8精品视频在线观看| 日韩欧美一区在线| 久久狠狠亚洲综合| 久久午夜电影网| 成人免费观看视频| 亚洲精品免费在线播放| 欧美日韩1234| 国内精品免费**视频| 国产亚洲欧美日韩在线一区| www.av精品| 天堂一区二区在线免费观看| 欧美一区二区精品在线| 国产成人精品亚洲午夜麻豆| 中文字幕一区二区三区精华液| 欧美网站大全在线观看| 美女被吸乳得到大胸91| 国产日韩欧美综合一区| 99久久精品免费观看| 午夜一区二区三区在线观看| 精品国产自在久精品国产| 成人av片在线观看| 日本最新不卡在线| 国产精品伦理在线|