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

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

?? resultsetregressiontest.java

?? mysql jdbc驅動程序 mysql jdbc驅動程序 mysql jdbc驅動程序 mysql jdbc驅動程序
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
			this.stmt.executeUpdate("DROP TABLE IF EXISTS testFixForBug2006_1");			this.stmt.executeUpdate("DROP TABLE IF EXISTS testFixForBug2006_2");		}	}	/**	 * Tests that ResultSet.getLong() does not truncate values.	 *	 * @throws Exception	 *             if any errors occur	 */	public void testGetLongBug() throws Exception {		this.stmt.executeUpdate("DROP TABLE IF EXISTS getLongBug");		this.stmt				.executeUpdate("CREATE TABLE IF NOT EXISTS getLongBug (int_col int, bigint_col bigint)");		int intVal = 123456;		long longVal1 = 123456789012345678L;		long longVal2 = -2079305757640172711L;		this.stmt.executeUpdate("INSERT INTO getLongBug "				+ "(int_col, bigint_col) " + "VALUES (" + intVal + ", "				+ longVal1 + "), " + "(" + intVal + ", " + longVal2 + ")");		try {			this.rs = this.stmt					.executeQuery("SELECT int_col, bigint_col FROM getLongBug ORDER BY bigint_col DESC");			this.rs.next();			assertTrue(					"Values not decoded correctly",					((this.rs.getInt(1) == intVal) && (this.rs.getLong(2) == longVal1)));			this.rs.next();			assertTrue(					"Values not decoded correctly",					((this.rs.getInt(1) == intVal) && (this.rs.getLong(2) == longVal2)));		} finally {			if (this.rs != null) {				try {					this.rs.close();				} catch (Exception ex) {					// ignore				}			}			this.stmt.executeUpdate("DROP TABLE IF EXISTS getLongBug");		}	}	/**	 * DOCUMENT ME!	 *	 * @throws Exception	 *             DOCUMENT ME!	 */	public void testGetTimestampWithDate() throws Exception {		try {			this.stmt.executeUpdate("DROP TABLE IF EXISTS testGetTimestamp");			this.stmt.executeUpdate("CREATE TABLE testGetTimestamp (d date)");			this.stmt					.executeUpdate("INSERT INTO testGetTimestamp values (now())");			this.rs = this.stmt.executeQuery("SELECT * FROM testGetTimestamp");			this.rs.next();			System.out.println(this.rs.getTimestamp(1));		} finally {			this.stmt.executeUpdate("DROP TABLE IF EXISTS testGetTimestamp");		}	}	/**	 * Tests a bug where ResultSet.isBefireFirst() would return true when the	 * result set was empty (which is incorrect)	 *	 * @throws Exception	 *             if an error occurs.	 */	public void testIsBeforeFirstOnEmpty() throws Exception {		try {			// Query with valid rows: isBeforeFirst() correctly returns True			this.rs = this.stmt.executeQuery("SHOW VARIABLES LIKE 'version'");			assertTrue("Non-empty search should return true", this.rs					.isBeforeFirst());			// Query with empty result: isBeforeFirst() falsely returns True			// Sun's documentation says it should return false			this.rs = this.stmt.executeQuery("SHOW VARIABLES LIKE 'garbage'");			assertTrue("Empty search should return false ", !this.rs					.isBeforeFirst());		} finally {			this.rs.close();		}	}	/**	 * Tests a bug where ResultSet.isBefireFirst() would return true when the	 * result set was empty (which is incorrect)	 *	 * @throws Exception	 *             if an error occurs.	 */	public void testMetaDataIsWritable() throws Exception {		try {			// Query with valid rows			this.rs = this.stmt.executeQuery("SHOW VARIABLES LIKE 'version'");			ResultSetMetaData rsmd = this.rs.getMetaData();			int numColumns = rsmd.getColumnCount();			for (int i = 1; i <= numColumns; i++) {				assertTrue("rsmd.isWritable() should != rsmd.isReadOnly()",						rsmd.isWritable(i) != rsmd.isReadOnly(i));			}		} finally {			this.rs.close();		}	}	/**	 * Tests fix for bug # 496	 *	 * @throws Exception	 *             if an error happens.	 */	public void testNextAndPrevious() throws Exception {		try {			this.stmt.executeUpdate("DROP TABLE IF EXISTS testNextAndPrevious");			this.stmt					.executeUpdate("CREATE TABLE testNextAndPrevious (field1 int)");			this.stmt					.executeUpdate("INSERT INTO testNextAndPrevious VALUES (1)");			this.rs = this.stmt					.executeQuery("SELECT * from testNextAndPrevious");			System.out.println("Currently at row " + this.rs.getRow());			this.rs.next();			System.out.println("Value at row " + this.rs.getRow() + " is "					+ this.rs.getString(1));			this.rs.previous();			try {				System.out.println("Value at row " + this.rs.getRow() + " is "						+ this.rs.getString(1));				fail("Should not be able to retrieve values with invalid cursor");			} catch (SQLException sqlEx) {				assertTrue(sqlEx.getMessage().startsWith("Before start"));			}			this.rs.next();			this.rs.next();			try {				System.out.println("Value at row " + this.rs.getRow() + " is "						+ this.rs.getString(1));				fail("Should not be able to retrieve values with invalid cursor");			} catch (SQLException sqlEx) {				assertTrue(sqlEx.getMessage().startsWith("After end"));			}		} finally {			this.stmt.executeUpdate("DROP TABLE IF EXISTS testNextAndPrevious");		}	}	/**	 * Tests fix for BUG#1630 (not updatable exception turning into NPE on	 * second updateFoo() method call.	 *	 * @throws Exception	 *             if an unexpected exception is thrown.	 */	public void testNotUpdatable() throws Exception {		this.rs = null;		try {			String sQuery = "SHOW VARIABLES";			this.pstmt = this.conn					.prepareStatement(sQuery, ResultSet.TYPE_SCROLL_SENSITIVE,							ResultSet.CONCUR_UPDATABLE);			this.rs = this.pstmt.executeQuery();			if (this.rs.next()) {				this.rs.absolute(1);				try {					this.rs.updateInt(1, 1);				} catch (SQLException sqlEx) {					assertTrue(sqlEx instanceof NotUpdatable);				}				try {					this.rs.updateString(1, "1");				} catch (SQLException sqlEx) {					assertTrue(sqlEx instanceof NotUpdatable);				}			}		} finally {			if (this.pstmt != null) {				try {					this.pstmt.close();				} catch (Exception e) {					// ignore				}			}		}	}	/**	 * Tests that streaming result sets are registered correctly.	 *	 * @throws Exception	 *             if any errors occur	 */	public void testStreamingRegBug() throws Exception {		try {			this.stmt.executeUpdate("DROP TABLE IF EXISTS StreamingRegBug");			this.stmt					.executeUpdate("CREATE TABLE StreamingRegBug ( DUMMYID "							+ " INTEGER NOT NULL, DUMMYNAME VARCHAR(32),PRIMARY KEY (DUMMYID) )");			this.stmt					.executeUpdate("INSERT INTO StreamingRegBug (DUMMYID, DUMMYNAME) VALUES (0, NULL)");			this.stmt					.executeUpdate("INSERT INTO StreamingRegBug (DUMMYID, DUMMYNAME) VALUES (1, 'nro 1')");			this.stmt					.executeUpdate("INSERT INTO StreamingRegBug (DUMMYID, DUMMYNAME) VALUES (2, 'nro 2')");			this.stmt					.executeUpdate("INSERT INTO StreamingRegBug (DUMMYID, DUMMYNAME) VALUES (3, 'nro 3')");			PreparedStatement streamStmt = null;			try {				streamStmt = this.conn.prepareStatement(						"SELECT DUMMYID, DUMMYNAME "								+ "FROM StreamingRegBug ORDER BY DUMMYID",						java.sql.ResultSet.TYPE_FORWARD_ONLY,						java.sql.ResultSet.CONCUR_READ_ONLY);				streamStmt.setFetchSize(Integer.MIN_VALUE);				this.rs = streamStmt.executeQuery();				while (this.rs.next()) {					this.rs.getString(1);				}				this.rs.close(); // error occurs here			} catch (SQLException sqlEx) {			} finally {				if (streamStmt != null) {					try {						streamStmt.close();					} catch (SQLException exWhileClose) {						exWhileClose.printStackTrace();					}				}			}		} finally {			this.stmt.executeUpdate("DROP TABLE IF EXISTS StreamingRegBug");		}	}	/**	 * Tests that result sets can be updated when all parameters are correctly	 * set.	 *	 * @throws Exception	 *             if any errors occur	 */	public void testUpdatability() throws Exception {		this.rs = null;		this.stmt.execute("DROP TABLE IF EXISTS updatabilityBug");		this.stmt.execute("CREATE TABLE IF NOT EXISTS updatabilityBug ("				+ " id int(10) unsigned NOT NULL auto_increment,"				+ " field1 varchar(32) NOT NULL default '',"				+ " field2 varchar(128) NOT NULL default '',"				+ " field3 varchar(128) default NULL,"				+ " field4 varchar(128) default NULL,"				+ " field5 varchar(64) default NULL,"				+ " field6 int(10) unsigned default NULL,"				+ " field7 varchar(64) default NULL," + " PRIMARY KEY  (id)"				+ ") TYPE=InnoDB;");		this.stmt.executeUpdate("insert into updatabilityBug (id) values (1)");		try {			String sQuery = " SELECT * FROM updatabilityBug WHERE id = ? ";			this.pstmt = this.conn					.prepareStatement(sQuery, ResultSet.TYPE_SCROLL_SENSITIVE,							ResultSet.CONCUR_UPDATABLE);			this.conn.setAutoCommit(false);			this.pstmt.setInt(1, 1);			this.rs = this.pstmt.executeQuery();			if (this.rs.next()) {				this.rs.absolute(1);				this.rs.updateInt("id", 1);				this.rs.updateString("field1", "1");				this.rs.updateString("field2", "1");				this.rs.updateString("field3", "1");				this.rs.updateString("field4", "1");				this.rs.updateString("field5", "1");				this.rs.updateInt("field6", 1);				this.rs.updateString("field7", "1");				this.rs.updateRow();			}			this.conn.commit();			this.conn.setAutoCommit(true);		} finally {			if (this.pstmt != null) {				try {					this.pstmt.close();				} catch (Exception e) {					// ignore				}			}			this.stmt.execute("DROP TABLE IF EXISTS updatabilityBug");		}	}	/**	 * Test fixes for BUG#1071	 *	 * @throws Exception	 *             if the test fails.	 */	public void testUpdatabilityAndEscaping() throws Exception {		Properties props = new Properties();		props.setProperty("useUnicode", "true");		props.setProperty("characterEncoding", "big5");		Connection updConn = getConnectionWithProps(props);		Statement updStmt = updConn.createStatement(				ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);		try {			updStmt					.executeUpdate("DROP TABLE IF EXISTS testUpdatesWithEscaping");			updStmt					.executeUpdate("CREATE TABLE testUpdatesWithEscaping (field1 INT PRIMARY KEY, field2 VARCHAR(64))");			updStmt					.executeUpdate("INSERT INTO testUpdatesWithEscaping VALUES (1, null)");			String stringToUpdate = "\" \\ '";			this.rs = updStmt					.executeQuery("SELECT * from testUpdatesWithEscaping");			this.rs.next();			this.rs.updateString(2, stringToUpdate);			this.rs.updateRow();			assertTrue(stringToUpdate.equals(this.rs.getString(2)));		} finally {			updStmt					.executeUpdate("DROP TABLE IF EXISTS testUpdatesWithEscaping");			updStmt.close();			updConn.close();		}	}	/**	 * Tests the fix for BUG#661 ... refreshRow() fails when primary key values	 * have escaped data in them.	 *	 * @throws Exception	 *             if an error occurs	 */	public void testUpdatabilityWithQuotes() throws Exception {		Statement updStmt = null;		try {			this.stmt.executeUpdate("DROP TABLE IF EXISTS testUpdWithQuotes");			this.stmt					.executeUpdate("CREATE TABLE testUpdWithQuotes (keyField CHAR(32) PRIMARY KEY NOT NULL, field2 int)");			PreparedStatement pStmt = this.conn					.prepareStatement("INSERT INTO testUpdWithQuotes VALUES (?, ?)");			pStmt.setString(1, "Abe's");			pStmt.setInt(2, 1);			pStmt.executeUpdate();			updStmt = this.conn					.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,							ResultSet.CONCUR_UPDATABLE);			this.rs = updStmt.executeQuery("SELECT * FROM testUpdWithQuotes");			this.rs.next();			this.rs.updateInt(2, 2);			this.rs.updateRow();		} finally {			this.stmt.executeUpdate("DROP TABLE IF EXISTS testUpdWithQuotes");			if (this.rs != null) {				this.rs.close();			}			this.rs = null;			if (updStmt != null) {				updStmt.close();			}			updStmt = null;		}	}	/**	 * Checks whether or not ResultSet.updateClob() is implemented	 *	 * @throws Exception	 *             if the test fails	 */	public void testUpdateClob() throws Exception {		if (isRunningOnJdk131()) {			return; // test not valid on JDK-1.3.1		}		Statement updatableStmt = this.conn.createStatement(				ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);		try {			this.stmt.executeUpdate("DROP TABLE IF EXISTS testUpdateClob");			this.stmt					.executeUpdate("CREATE TABLE testUpdateClob(intField INT NOT NULL PRIMARY KEY, clobField TEXT)");			this.stmt					.executeUpdate("INSERT INTO testUpdateClob VALUES (1, 'foo')");			this.rs = updatableStmt					.executeQuery("SELECT intField, clobField FROM testUpdateClob");			this.rs.next();			Clob clob = this.rs.getClob(2);			clob.setString(1, "bar");			this.rs.updateClob(2, clob);			this.rs.updateRow();

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩午夜在线影院| 国产一区二区三区综合| 91福利在线免费观看| 亚洲欧美视频在线观看| 欧日韩精品视频| 日本一区中文字幕| 精品欧美一区二区久久| 国产酒店精品激情| 国产精品久久看| 日本乱人伦aⅴ精品| 五月婷婷激情综合| 18成人在线观看| 一本大道av伊人久久综合| 亚洲高清中文字幕| 日韩亚洲欧美中文三级| 国产成人亚洲综合a∨婷婷图片| 中文字幕国产一区| 欧美伊人久久久久久午夜久久久久| 无码av免费一区二区三区试看 | 成人av免费网站| 自拍偷拍欧美精品| 777精品伊人久久久久大香线蕉| 久久精品国产一区二区三区免费看 | 国产婷婷色一区二区三区在线| 成人亚洲精品久久久久软件| 洋洋av久久久久久久一区| 日韩视频在线你懂得| 国产成人免费视频精品含羞草妖精 | 91精品国产免费| 国产成人av一区二区| 夜夜揉揉日日人人青青一国产精品| 91超碰这里只有精品国产| 国产盗摄视频一区二区三区| 一区二区三区在线免费播放| 欧美刺激午夜性久久久久久久| 99re这里只有精品视频首页| 日本系列欧美系列| 亚洲欧美在线视频| 日韩欧美中文字幕一区| 91视频在线观看免费| 狠狠色丁香久久婷婷综| 丁香天五香天堂综合| 久久久久99精品国产片| 国产最新精品精品你懂的| 亚洲免费观看高清在线观看| 2023国产精品视频| 9191成人精品久久| 色噜噜狠狠成人网p站| 国产乱码精品一区二区三区av| 亚洲国产视频a| 亚洲欧美综合网| 久久精品视频免费| 7777精品伊人久久久大香线蕉的 | 国产一区二区三区香蕉| 国产**成人网毛片九色| 一区二区在线电影| 日本一区二区免费在线观看视频 | 日韩一区二区三区观看| 日本乱码高清不卡字幕| av一区二区不卡| 国产98色在线|日韩| 久88久久88久久久| 日韩福利视频网| 午夜精品视频一区| 亚洲午夜视频在线观看| 一区二区欧美视频| 亚洲视频在线一区| 18欧美乱大交hd1984| 国产欧美日韩在线看| 久久久不卡网国产精品二区 | 欧美日韩一区中文字幕| 色综合中文字幕国产| 成人av免费在线| 成人毛片视频在线观看| 国产成人精品三级麻豆| 风间由美一区二区三区在线观看| 国产自产v一区二区三区c| 精品一区二区影视| 九九在线精品视频| 国产一区二三区| 国产成人综合精品三级| 国产电影一区在线| jlzzjlzz亚洲女人18| 99久久99久久精品免费观看 | 91免费在线视频观看| 欧美日韩一区三区四区| 久久超碰97人人做人人爱| 国产一区二区美女诱惑| 国产精品一线二线三线| 国产成人综合亚洲网站| 不卡一二三区首页| www.激情成人| 在线日韩av片| 91精品国产手机| 欧美xxxxx裸体时装秀| 2欧美一区二区三区在线观看视频| 国产米奇在线777精品观看| 国产在线一区观看| 成人不卡免费av| 在线视频一区二区免费| 91精品国产一区二区三区蜜臀| 日韩一区二区三区视频在线| 国产亚洲精品免费| 日本不卡一二三区黄网| 韩国精品在线观看| 91天堂素人约啪| 欧美色精品在线视频| 欧美一区二区精品久久911| 国产三级一区二区| 伊人开心综合网| 免费三级欧美电影| 播五月开心婷婷综合| 91精品欧美综合在线观看最新| 精品国产免费人成电影在线观看四季| 国产精品视频线看| 石原莉奈一区二区三区在线观看| 久久精品国产精品亚洲精品| 粉嫩欧美一区二区三区高清影视 | 色狠狠一区二区三区香蕉| 欧美高清精品3d| 国产欧美综合在线观看第十页| 亚洲人成网站在线| 久久精品99国产精品日本| eeuss鲁片一区二区三区在线观看| 欧美性生活久久| 国产人久久人人人人爽| 亚洲电影第三页| 成人app下载| 欧美一卡二卡在线| 亚洲欧美色综合| 国产精品18久久久| 欧美精品在线观看播放| 国产精品不卡一区二区三区| 免费成人av在线| 欧美午夜一区二区| 中文乱码免费一区二区| 七七婷婷婷婷精品国产| 色婷婷综合久久久| 国产亚洲欧洲一区高清在线观看| 亚洲国产一区二区视频| 白白色亚洲国产精品| 日韩精品一区在线观看| 性做久久久久久久久| av不卡一区二区三区| 26uuu精品一区二区| 午夜精品aaa| 丁香网亚洲国际| 亚洲欧美激情视频在线观看一区二区三区 | 从欧美一区二区三区| 精品动漫一区二区三区在线观看| 亚洲人成人一区二区在线观看| 青青草视频一区| 日韩美女视频一区二区在线观看| 亚洲色图视频网| 97精品久久久午夜一区二区三区| 中文字幕欧美激情一区| 高清不卡一二三区| 国产视频一区二区在线| 国产精品亚洲午夜一区二区三区| 日韩你懂的在线观看| 久久国产免费看| 亚洲欧美一区二区在线观看| 波波电影院一区二区三区| 欧美国产禁国产网站cc| 在线观看亚洲一区| 日本不卡一区二区| 久久精品一区四区| 色婷婷精品久久二区二区蜜臂av| 亚洲精品日韩专区silk| 欧美午夜片在线观看| 精品午夜久久福利影院| 国产精品国产三级国产三级人妇| eeuss鲁片一区二区三区在线观看| 欧美国产一区在线| 欧美午夜精品一区| 久久国产欧美日韩精品| 亚洲无线码一区二区三区| 亚洲色图欧美在线| 国产欧美日韩三区| 日韩精品专区在线| 国产盗摄女厕一区二区三区| 91精品国产欧美一区二区成人| 国产高清精品在线| 图片区小说区国产精品视频| 精品久久久网站| 亚洲激情六月丁香| 99精品欧美一区二区三区综合在线| 精品久久久久久最新网址| 国产麻豆精品久久一二三| 中日韩av电影| 91亚洲精品久久久蜜桃| 亚洲福利国产精品| 欧美一级久久久久久久大片| 国产综合色产在线精品| 国产精品福利一区二区| 欧美亚洲禁片免费| 久久精品国产**网站演员| 国产精品久久久久天堂| 欧美久久一二区| 日本成人超碰在线观看|