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

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

?? resultsetregressiontest.java

?? mysql jdbc驅動程序 mysql jdbc驅動程序 mysql jdbc驅動程序 mysql jdbc驅動程序
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
				asObject = this.rs.getObject(1);				assertEquals("java.lang.String", asObject.getClass().getName());				this.rs.close();				createTable("testBug8868_2",						"(field1 CHAR(4) CHARACTER SET BINARY)");				this.stmt						.executeUpdate("INSERT INTO testBug8868_2 VALUES ('abc')");				this.rs = this.stmt						.executeQuery("SELECT field1 FROM testBug8868_2");				rsmd = this.rs.getMetaData();				assertEquals("[B", rsmd.getColumnClassName(1));				this.rs.next();				asObject = this.rs.getObject(1);				assertEquals("[B", asObject.getClass().getName());			} finally {				if (this.rs != null) {					this.rs.close();					this.rs = null;				}			}		}	}	/**	 * Tests fix for BUG#9437, IF() returns type of [B or java.lang.String	 * depending on platform. Fixed earlier, but in here to catch if it ever	 * regresses.	 *	 * @throws Exception	 *             if the test fails.	 */	public void testBug9437() throws Exception {		String tableName = "testBug9437";		if (versionMeetsMinimum(4, 1, 0)) {			try {				createTable(						tableName,						"("								+ "languageCode char(2) NOT NULL default '',"								+ "countryCode char(2) NOT NULL default '',"								+ "supported enum('no','yes') NOT NULL default 'no',"								+ "ordering int(11) default NULL,"								+ "createDate datetime NOT NULL default '1000-01-01 00:00:03',"								+ "modifyDate timestamp NOT NULL default CURRENT_TIMESTAMP on update"								+ " CURRENT_TIMESTAMP,"								+ "PRIMARY KEY  (languageCode,countryCode),"								+ "KEY languageCode (languageCode),"								+ "KEY countryCode (countryCode),"								+ "KEY ordering (ordering),"								+ "KEY modifyDate (modifyDate)"								+ ") ENGINE=InnoDB DEFAULT CHARSET=utf8");				this.stmt.executeUpdate("INSERT INTO " + tableName						+ " (languageCode) VALUES ('en')");				String alias = "someLocale";				String sql = "select if ( languageCode = ?, ?, ? ) as " + alias						+ " from " + tableName;				this.pstmt = this.conn.prepareStatement(sql);				int count = 1;				this.pstmt.setObject(count++, "en");				this.pstmt.setObject(count++, "en_US");				this.pstmt.setObject(count++, "en_GB");				this.rs = this.pstmt.executeQuery();				assertTrue(this.rs.next());				Object object = this.rs.getObject(alias);				if (object != null) {					assertEquals("java.lang.String", object.getClass()							.getName());					assertEquals("en_US", object.toString());				}			} finally {				if (this.rs != null) {					this.rs.close();					this.rs = null;				}				if (this.pstmt != null) {					this.pstmt.close();					this.pstmt = null;				}			}		}	}	public void testBug9684() throws Exception {		if (versionMeetsMinimum(4, 1, 9)) {			String tableName = "testBug9684";			try {				createTable(tableName,						"(sourceText text character set utf8 collate utf8_bin)");				this.stmt.executeUpdate("INSERT INTO " + tableName						+ " VALUES ('abc')");				this.rs = this.stmt.executeQuery("SELECT sourceText FROM "						+ tableName);				assertTrue(this.rs.next());				assertEquals("java.lang.String", this.rs.getString(1)						.getClass().getName());				assertEquals("abc", this.rs.getString(1));			} finally {				if (this.rs != null) {					this.rs.close();					this.rs = null;				}			}		}	}	/**	 * Tests fix for BUG#10156 - Unsigned SMALLINT treated as signed	 *	 * @throws Exception	 *             if the test fails.	 */	public void testBug10156() throws Exception {		String tableName = "testBug10156";		try {			createTable(tableName, "(field1 smallint(5) unsigned, "					+ "field2 tinyint unsigned," + "field3 int unsigned)");			this.stmt.executeUpdate("INSERT INTO " + tableName					+ " VALUES (32768, 255, 4294967295)");			this.rs = this.conn.prepareStatement(					"SELECT field1, field2, field3 FROM " + tableName)					.executeQuery();			assertTrue(this.rs.next());			assertEquals(32768, this.rs.getInt(1));			assertEquals(255, this.rs.getInt(2));			assertEquals(4294967295L, this.rs.getLong(3));			assertEquals(String.valueOf(this.rs.getObject(1)), String					.valueOf(this.rs.getInt(1)));			assertEquals(String.valueOf(this.rs.getObject(2)), String					.valueOf(this.rs.getInt(2)));			assertEquals(String.valueOf(this.rs.getObject(3)), String					.valueOf(this.rs.getLong(3)));		} finally {			if (this.rs != null) {				this.rs.close();				this.rs = null;			}		}	}	public void testBug10212() throws Exception {		String tableName = "testBug10212";		try {			createTable(tableName, "(field1 YEAR(4))");			this.stmt.executeUpdate("INSERT INTO " + tableName					+ " VALUES (1974)");			this.rs = this.conn.prepareStatement(					"SELECT field1 FROM " + tableName).executeQuery();			ResultSetMetaData rsmd = this.rs.getMetaData();			assertTrue(this.rs.next());			assertEquals("java.sql.Date", rsmd.getColumnClassName(1));			assertEquals("java.sql.Date", this.rs.getObject(1).getClass()					.getName());			this.rs = this.stmt.executeQuery("SELECT field1 FROM " + tableName);			rsmd = this.rs.getMetaData();			assertTrue(this.rs.next());			assertEquals("java.sql.Date", rsmd.getColumnClassName(1));			assertEquals("java.sql.Date", this.rs.getObject(1).getClass()					.getName());		} finally {			if (this.rs != null) {				this.rs.close();				this.rs = null;			}		}	}	/**	 * Tests fix for BUG#11190 - ResultSet.moveToCurrentRow() fails to work when	 * preceeded with .moveToInsertRow().	 *	 * @throws Exception	 *             if the test fails.	 */	public void testBug11190() throws Exception {		createTable("testBug11190", "(a CHAR(4) PRIMARY KEY, b VARCHAR(20))");		this.stmt				.executeUpdate("INSERT INTO testBug11190 VALUES('3000','L'),('3001','H'),('1050','B')");		Statement updStmt = null;		try {			updStmt = this.conn					.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,							ResultSet.CONCUR_UPDATABLE);			this.rs = updStmt.executeQuery("select * from testBug11190");			assertTrue("must return a row", this.rs.next());			String savedValue = this.rs.getString(1);			this.rs.moveToInsertRow();			this.rs.updateString(1, "4000");			this.rs.updateString(2, "C");			this.rs.insertRow();			this.rs.moveToCurrentRow();			assertEquals(savedValue, this.rs.getString(1));		} finally {			if (this.rs != null) {				this.rs.close();				this.rs = null;			}			if (updStmt != null) {				updStmt.close();			}		}	}	/**	 * Tests fix for BUG#12104 - Geometry types not handled with server-side	 * prepared statements.	 *	 * @throws Exception	 *             if the test fails	 */	public void testBug12104() throws Exception {		if (versionMeetsMinimum(4, 1)) {			createTable("testBug12104", "(field1 GEOMETRY) ENGINE=MyISAM");			try {				this.stmt						.executeUpdate("INSERT INTO testBug12104 VALUES (GeomFromText('POINT(1 1)'))");				this.pstmt = this.conn						.prepareStatement("SELECT field1 FROM testBug12104");				this.rs = this.pstmt.executeQuery();				assertTrue(this.rs.next());				System.out.println(this.rs.getObject(1));			} finally {			}		}	}	/**	 * Tests fix for BUG#13043 - when 'gatherPerfMetrics' is enabled for servers <	 * 4.1.0, a NPE is thrown from the constructor of ResultSet if the query	 * doesn't use any tables.	 *	 * @throws Exception	 *             if the test fails	 */	public void testBug13043() throws Exception {		if (!versionMeetsMinimum(4, 1)) {			Connection perfConn = null;			try {				Properties props = new Properties();				props.put("gatherPerfMetrics", "true"); // this property is				// reported as the cause				// of				// NullPointerException				props.put("reportMetricsIntervalMillis", "30000"); // this				// property				// is				// reported				// as the				// cause of				// NullPointerException				perfConn = getConnectionWithProps(props);				perfConn.createStatement().executeQuery("SELECT 1");			} finally {				if (perfConn != null) {					perfConn.close();				}			}		}	}	/**	 * Tests fix for BUG#13374 - ResultSet.getStatement() on closed result set	 * returns NULL (as per JDBC 4.0 spec, but not backwards-compatible).	 *	 * @throws Exception	 *             if the test fails	 */	public void testBug13374() throws Exception {		Statement retainStmt = null;		Connection retainConn = null;		try {			Properties props = new Properties();			props.setProperty("retainStatementAfterResultSetClose", "true");			retainConn = getConnectionWithProps(props);			retainStmt = retainConn.createStatement();			this.rs = retainStmt.executeQuery("SELECT 1");			this.rs.close();			assertNotNull(this.rs.getStatement());			this.rs = this.stmt.executeQuery("SELECT 1");			this.rs.close();			try {				this.rs.getStatement();			} catch (SQLException sqlEx) {				assertEquals(sqlEx.getSQLState(),						SQLError.SQL_STATE_GENERAL_ERROR);			}		} finally {			if (this.rs != null) {				this.rs.close();				this.rs = null;			}			if (retainStmt != null) {				retainStmt.close();			}			if (retainConn != null) {				retainConn.close();			}		}	}	/**	 * Tests bugfix for BUG#14562 - metadata/type for MEDIUMINT UNSIGNED is	 * incorrect.	 *	 * @throws Exception	 *             if the test fails.	 */	public void testBug14562() throws Exception {		createTable("testBug14562",				"(row_order INT, signed_field MEDIUMINT, unsigned_field MEDIUMINT UNSIGNED)");		try {			this.stmt					.executeUpdate("INSERT INTO testBug14562 VALUES (1, -8388608, 0), (2, 8388607, 16777215)");			this.rs = this.stmt					.executeQuery("SELECT signed_field, unsigned_field FROM testBug14562 ORDER BY row_order");			traverseResultSetBug14562();			this.rs = this.conn					.prepareStatement(							"SELECT signed_field, unsigned_field FROM testBug14562 ORDER BY row_order")					.executeQuery();			traverseResultSetBug14562();			if (versionMeetsMinimum(5, 0)) {				CallableStatement storedProc = null;				try {					this.stmt							.executeUpdate("DROP PROCEDURE IF EXISTS sp_testBug14562");					this.stmt							.executeUpdate("CREATE PROCEDURE sp_testBug14562() BEGIN SELECT signed_field, unsigned_field FROM testBug14562 ORDER BY row_order; END");					storedProc = this.conn							.prepareCall("{call sp_testBug14562()}");					storedProc.execute();					this.rs = storedProc.getResultSet();					traverseResultSetBug14562();					this.stmt							.executeUpdate("DROP PROCEDURE IF EXISTS sp_testBug14562_1");					this.stmt							.executeUpdate("CREATE PROCEDURE sp_testBug14562_1(OUT param_1 MEDIUMINT, OUT param_2 MEDIUMINT UNSIGNED) BEGIN SELECT signed_field, unsigned_field INTO param_1, param_2 FROM testBug14562 WHERE row_order=1; END");					storedProc = this.conn							.prepareCall("{call sp_testBug14562_1(?, ?)}");					storedProc.registerOutParameter(1, Types.INTEGER);					storedProc.registerOutParameter(2, Types.INTEGER);					storedProc.execute();					assertEquals("java.lang.Integer", storedProc.getObject(1)							.getClass().getName());					assertEquals("java.lang.Integer", storedProc.getObject(2)							.getClass().getName());				} finally {					if (storedProc != null) {						storedProc.close();					}					this.stmt							.executeUpdate("DROP PROCEDURE IF EXISTS sp_testBug14562");				}			}			this.rs = this.conn.getMetaData().getColumns(					this.conn.getCatalog(), null, "testBug14562", "%field");			assertTrue(this.rs.next());			assertEquals(Types.INTEGER, this.rs.getInt("DATA_TYPE"));			assertEquals("MEDIUMINT", this.rs.getString("TYPE_NAME")					.toUpperCase(Locale.US));			assertTrue(this.rs.next());			assertEquals(Types.INTEGER, this.rs.getInt("DATA_TYPE"));			assertEquals("MEDIUMINT UNSIGNED", this.rs.getString("TYPE_NAME")					.toUpperCase(Locale.US));			//			// The following test is harmless in the 3.1 driver, but			// is needed for the 5.0 driver, so we'll leave it here			//			if (versionMeetsMinimum(5, 0, 14)) {				Connection infoSchemConn = null;				try {					Properties props = new Properties();					props.setProperty("useInformationSchema", "true");					infoSchemConn = getConnectionWithProps(props);					this.rs = infoSchemConn.getMetaData().getColumns(							infoSchemConn.getCatalog(), null, "testBug14562",							"%field");					assertTrue(this.rs.next());					assertEquals(Types.INTEGER, this.rs.getInt("DATA_TYPE"));					ass

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
懂色一区二区三区免费观看| 日韩理论电影院| 狠狠色2019综合网| 制服丝袜亚洲网站| 久久草av在线| 国产精品亲子伦对白| 99精品国产视频| 午夜精品影院在线观看| 制服丝袜国产精品| 国产成人精品www牛牛影视| 国产精品久久久久桃色tv| 一本大道久久a久久精二百| 亚洲永久精品国产| 日韩一卡二卡三卡| 成人激情综合网站| 一区二区三区久久| 日韩欧美国产精品一区| 国产精品99久久久久久久女警 | 国产伦精品一区二区三区视频青涩 | 精品免费日韩av| 成人天堂资源www在线| 亚洲天堂中文字幕| 欧美一区二区三区视频在线观看 | 亚洲第一精品在线| 久久精品亚洲乱码伦伦中文| 97se亚洲国产综合自在线观| 午夜视频一区在线观看| 337p粉嫩大胆噜噜噜噜噜91av| 99在线精品观看| 婷婷开心激情综合| 国产精品水嫩水嫩| 欧美精品123区| 不卡一区中文字幕| 美日韩一区二区| 综合中文字幕亚洲| 国产亚洲精品精华液| 欧美色综合网站| 成人综合激情网| 麻豆极品一区二区三区| 日韩毛片精品高清免费| 日韩欧美一区电影| 在线观看不卡一区| 国产sm精品调教视频网站| 日韩国产精品久久久久久亚洲| 国产精品免费av| 久久亚洲精华国产精华液| 精品视频在线看| 99v久久综合狠狠综合久久| 精品一区二区三区在线播放 | 国产精品免费aⅴ片在线观看| 91精品国产综合久久福利| 99久久精品情趣| 高清beeg欧美| 国产美女精品一区二区三区| 日本视频免费一区| 亚洲高清免费观看| 亚洲黄一区二区三区| 欧美激情一区二区三区全黄 | 99精品欧美一区二区蜜桃免费 | 亚洲特黄一级片| 国产精品午夜在线观看| 精品国产一区二区三区不卡| 欧美日韩精品一区二区三区蜜桃| 99久久精品免费看国产免费软件| 粉嫩绯色av一区二区在线观看| 另类调教123区| 麻豆免费看一区二区三区| 亚洲高清免费在线| 午夜亚洲福利老司机| 亚洲精品老司机| 一区二区三区日韩精品| 亚洲欧美视频在线观看视频| 中文字幕欧美一| 亚洲精品久久久蜜桃| 亚洲视频在线一区| 亚洲精品网站在线观看| 亚洲欧美另类久久久精品2019| 国产精品高潮久久久久无| 中文无字幕一区二区三区| 国产夜色精品一区二区av| 久久精品欧美日韩| 中文字幕在线不卡| 亚洲精品福利视频网站| 一区二区三区四区不卡在线| 亚洲一区二区三区不卡国产欧美 | 天天色天天操综合| 日韩中文字幕亚洲一区二区va在线| 亚洲成人av一区二区| 日本不卡在线视频| 国产精品一区二区在线观看网站 | 一区二区激情小说| 亚洲国产精品一区二区www在线| 亚洲福利国产精品| 久久国产精品99精品国产 | 717成人午夜免费福利电影| 欧美丰满美乳xxx高潮www| 欧美一区二区三区四区视频| 日韩欧美国产电影| 国产视频一区不卡| 亚洲日本护士毛茸茸| 亚洲成a人片综合在线| 精品制服美女久久| 91捆绑美女网站| 7777精品伊人久久久大香线蕉| www国产成人免费观看视频 深夜成人网| 久久免费美女视频| 一区二区三区精品在线观看| 亚洲第一成人在线| 国产精品456| 91高清视频在线| 日韩欧美激情一区| 亚洲欧美一区二区三区久本道91 | 日韩精品免费专区| 国产风韵犹存在线视精品| 91丨porny丨中文| 欧美v日韩v国产v| 国产精品国产三级国产a| 一区二区三区鲁丝不卡| 蜜桃av一区二区| 色婷婷国产精品久久包臀| 日韩亚洲欧美成人一区| 国产精品人妖ts系列视频 | 国产真实乱偷精品视频免| 99久久免费视频.com| 日韩一区二区三区在线| 中文字幕在线免费不卡| 麻豆一区二区三| 欧美中文字幕亚洲一区二区va在线| 欧美精品一区二区三区蜜臀 | 国产精品国产精品国产专区不蜜| 日韩av一区二区三区四区| 福利一区福利二区| 日韩一卡二卡三卡国产欧美| **性色生活片久久毛片| 经典一区二区三区| 欧美日本一道本在线视频| 欧美国产1区2区| 日韩精品国产欧美| 91免费看片在线观看| 2023国产精品视频| 视频一区二区国产| 91久久精品午夜一区二区| 国产精品―色哟哟| 国产一区二区主播在线| 欧美日韩视频在线第一区 | 成人国产精品免费观看| 欧美大片拔萝卜| 日韩av在线免费观看不卡| 欧美在线观看一二区| 国产精品美女www爽爽爽| 久久99九九99精品| 欧美一级日韩一级| 日韩精品一级中文字幕精品视频免费观看 | 久久亚洲一区二区三区明星换脸| 亚洲一区在线视频| 91久久线看在观草草青青| 国产精品乱码妇女bbbb| 国产乱码精品一区二区三| 欧美一区二区免费观在线| 亚洲一二三区在线观看| 99久久综合色| 综合欧美一区二区三区| av在线这里只有精品| 中文字幕成人网| 成人av在线影院| 国产日韩欧美高清在线| 国产精品888| 中文在线一区二区| 91一区二区三区在线播放| 中文字幕一区在线观看视频| 波多野结衣中文字幕一区二区三区| 久久久不卡影院| av在线不卡网| 亚洲一区二区影院| 69堂亚洲精品首页| 蜜臀久久99精品久久久久久9| 日韩精品一区二区三区四区| 蜜臀av一区二区在线免费观看| 欧美不卡视频一区| 国产成人在线观看免费网站| 国产欧美精品日韩区二区麻豆天美| 国产1区2区3区精品美女| 国产精品欧美一区喷水| 91丨九色丨蝌蚪丨老版| 亚洲综合男人的天堂| 欧美色视频在线观看| 奇米色777欧美一区二区| 精品对白一区国产伦| 成人国产精品免费网站| 亚洲综合在线五月| 欧美高清视频www夜色资源网| 久久成人久久鬼色| 中文字幕+乱码+中文字幕一区| 91黄视频在线观看| 奇米四色…亚洲| 中文字幕一区三区| 欧美卡1卡2卡| 国产91在线看| 天天免费综合色| 欧美国产精品劲爆|