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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? metadataregressiontest.java

?? 用于JAVA數(shù)據(jù)庫連接.解壓就可用,方便得很
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
			}		} finally {			closeMemberJDBCResources();		}	}		private void checkMetadataForBug22613(Connection c) throws Exception {		String maxValue = "a,bc,def,ghij";				try {			DatabaseMetaData meta = c.getMetaData();			this.rs = meta.getColumns(null, this.conn.getCatalog(), "bug22613", "s");			this.rs.first();			assertEquals(maxValue.length(), rs.getInt("COLUMN_SIZE"));						this.rs = meta.getColumns(null, c.getCatalog(), "bug22613", "t");			this.rs.first();			assertEquals(4, rs.getInt("COLUMN_SIZE"));					} finally {			closeMemberJDBCResources();		}	}	/**	 * Fix for BUG#22628 - Driver.getPropertyInfo() throws NullPointerException for URL that only specifies	 * host and/or port.	 * 	 * @throws Exception if the test fails.	 */	public void testBug22628() throws Exception {		DriverPropertyInfo[] dpi = new NonRegisteringDriver().getPropertyInfo("jdbc:mysql://bogus:9999", 				new Properties());				boolean foundHost = false;				for (int i = 0; i < dpi.length; i++) {			if ("bogus:9999".equals(dpi[i].value)) {				foundHost = true;				break;			}		}				assertTrue(foundHost);	}		private void testAbsenceOfMetadataForQuery(String query) throws Exception {		try {			this.pstmt = this.conn.prepareStatement(query);			ResultSetMetaData rsmd = this.pstmt.getMetaData();			assertNull(rsmd);			this.pstmt = ((com.mysql.jdbc.Connection) this.conn)					.clientPrepareStatement(query);			rsmd = this.pstmt.getMetaData();			assertNull(rsmd);		} finally {			if (this.pstmt != null) {				this.pstmt.close();			}		}	}	public void testRSMDToStringFromDBMD() throws Exception {		try {					this.rs = this.conn.getMetaData().getTypeInfo();						this.rs.getMetaData().toString(); // used to cause NPE		} finally {			closeMemberJDBCResources();		}	}		public void testCharacterSetForDBMD() throws Exception {		if (versionMeetsMinimum(4, 0)) {			// server is broken, fixed in 5.2/6.0?						if (!versionMeetsMinimum(5, 2)) {				return;			}		}				String quoteChar = this.conn.getMetaData().getIdentifierQuoteString();				String tableName = quoteChar + "\u00e9\u0074\u00e9" + quoteChar;		createTable(tableName, "(field1 int)");		this.rs = this.conn.getMetaData().getTables(this.conn.getCatalog(), 				null, tableName, new String[] {"TABLE"});		assertEquals(true, this.rs.next());		System.out.println(this.rs.getString("TABLE_NAME"));		System.out.println(new String(this.rs.getBytes("TABLE_NAME"), "UTF-8"));	}	/**	 * Tests fix for BUG#18258 - Nonexistent catalog/database causes SQLException	 * to be raised, rather than returning empty result set.	 * 	 * @throws Exception if the test fails.	 */	public void testBug18258() throws Exception {		String bogusDatabaseName = "abcdefghijklmnopqrstuvwxyz";		this.conn.getMetaData().getTables(bogusDatabaseName, "%", "%", new String[] {"TABLE", "VIEW"});		this.conn.getMetaData().getColumns(bogusDatabaseName, "%", "%", "%");		this.conn.getMetaData().getProcedures(bogusDatabaseName, "%", "%");	}	/**	 * Tests fix for BUG#23303 - DBMD.getSchemas() doesn't return a TABLE_CATALOG column.	 * 	 * @throws Exception if the test fails.	 */	public void testBug23303() throws Exception {		try {			this.rs = this.conn.getMetaData().getSchemas();			this.rs.findColumn("TABLE_CATALOG");		} finally {			closeMemberJDBCResources();		}	}		/**	 * Tests fix for BUG#23304 - DBMD using "show" and DBMD using 	 * information_schema do not return results consistent with eachother.	 * 	 * (note this fix only addresses the inconsistencies, not the issue that	 * the driver is treating schemas differently than some users expect.	 * 	 * We will revisit this behavior when there is full support for schemas	 * in MySQL).	 * 	 * @throws Exception	 */	public void testBug23304() throws Exception {		if (!versionMeetsMinimum(5, 0)) {			return;		}				Connection connShow = null;		Connection connInfoSchema = null;				ResultSet rsShow = null;		ResultSet rsInfoSchema = null;				try {			Properties noInfoSchemaProps = new Properties();			noInfoSchemaProps.setProperty("useInformationSchema", "false");						Properties infoSchemaProps = new Properties();			infoSchemaProps.setProperty("useInformationSchema", "true");			infoSchemaProps.setProperty("dumpQueriesOnException", "true");						connShow = getConnectionWithProps(noInfoSchemaProps);			connInfoSchema = getConnectionWithProps(infoSchemaProps);						DatabaseMetaData dbmdUsingShow = connShow.getMetaData();			DatabaseMetaData dbmdUsingInfoSchema = connInfoSchema.getMetaData();						assertNotSame(dbmdUsingShow.getClass(), dbmdUsingInfoSchema.getClass());						if (!isRunningOnJdk131()) {				rsShow = dbmdUsingShow.getSchemas();				rsInfoSchema = dbmdUsingInfoSchema.getSchemas();							compareResultSets(rsShow, rsInfoSchema);				}						/*			rsShow = dbmdUsingShow.getTables(connShow.getCatalog(), null, "%", new String[] {"TABLE", "VIEW"});			rsInfoSchema = dbmdUsingInfoSchema.getTables(connInfoSchema.getCatalog(), null, "%", new String[] {"TABLE", "VIEW"});						compareResultSets(rsShow, rsInfoSchema);						rsShow = dbmdUsingShow.getTables(null, null, "%", new String[] {"TABLE", "VIEW"});			rsInfoSchema = dbmdUsingInfoSchema.getTables(null, null, "%", new String[] {"TABLE", "VIEW"});					compareResultSets(rsShow, rsInfoSchema);			*/						createTable("t_testBug23304", "(field1 int primary key not null, field2 tinyint, field3 mediumint, field4 mediumint, field5 bigint, field6 float, field7 double, field8 decimal, field9 char(32), field10 varchar(32), field11 blob, field12 mediumblob, field13 longblob, field14 text, field15 mediumtext, field16 longtext, field17 date, field18 time, field19 datetime, field20 timestamp)");						rsShow = dbmdUsingShow.getColumns(connShow.getCatalog(), null, "t_testBug23304", "%");			rsInfoSchema = dbmdUsingInfoSchema.getColumns(connInfoSchema.getCatalog(), null, "t_testBug23304", "%");						compareResultSets(rsShow, rsInfoSchema);		} finally {			if (rsShow != null) {				rsShow.close();			}						if (rsInfoSchema != null) {				rsInfoSchema.close();			}		}	}		private void compareResultSets(ResultSet expected, ResultSet actual) throws Exception {		if (expected == null && actual != null) {			fail("Expected null result set, actual was not null.");		} else if (expected != null && actual == null) {			fail("Expected non-null actual result set.");		} else if (expected == null && actual == null) {			return;		}				expected.last();				int expectedRows = expected.getRow();				actual.last();				int actualRows = actual.getRow();				assertEquals(expectedRows, actualRows);				ResultSetMetaData metadataExpected = expected.getMetaData();		ResultSetMetaData metadataActual = actual.getMetaData();				assertEquals(metadataExpected.getColumnCount(), metadataActual.getColumnCount());				for (int i = 0; i < metadataExpected.getColumnCount(); i++) {			assertEquals(metadataExpected.getColumnName(i + 1), metadataActual.getColumnName(i + 1));			assertEquals(metadataExpected.getColumnType(i + 1), metadataActual.getColumnType(i + 1));			assertEquals(metadataExpected.getColumnClassName(i + 1), metadataActual.getColumnClassName(i + 1));		}				expected.beforeFirst();		actual.beforeFirst();				StringBuffer messageBuf = null;				while (expected.next() && actual.next()) {						if (messageBuf != null) {				messageBuf.append("\n");			}						for (int i = 0; i < metadataExpected.getColumnCount(); i++) {				if (expected.getObject(i + 1) == null && actual.getObject(i + 1) == null) {					continue;				}								if ((expected.getObject(i + 1) == null && actual.getObject(i + 1) != null) ||						(expected.getObject(i + 1) != null && actual.getObject(i + 1) == null) ||						(!expected.getObject(i + 1).equals(actual.getObject(i + 1)))) {					if ("COLUMN_DEF".equals(metadataExpected.getColumnName(i + 1)) && 							(expected.getObject(i + 1) == null && actual.getString(i + 1).length() == 0) ||							(expected.getString(i + 1).length() == 0 && actual.getObject(i + 1) == null)) {						continue; // known bug with SHOW FULL COLUMNS, and we can't distinguish between null and ''						          // for a default					}										if (messageBuf == null) {						messageBuf = new StringBuffer();					} else {						messageBuf.append("\n");					}										messageBuf.append("On row " + expected.getRow() + " ,for column named " + metadataExpected.getColumnName(i + 1) + ", expected '" + expected.getObject(i + 1) + "', found '" + actual.getObject(i + 1) + "'");									}			}		}				if (messageBuf != null) {			fail(messageBuf.toString());		}	}	/**	 * Tests fix for BUG#25624 - Whitespace surrounding storage/size specifiers in stored procedure	 * declaration causes NumberFormatException to be thrown when calling stored procedure.	 * 	 * @throws Exception	 */	public void testBug25624() throws Exception {		if (!versionMeetsMinimum(5, 0)) {			return;		}		//		// we changed up the parameters to get coverage of the fixes,		// also note that whitespace _is_ significant in the DDL...		//				createProcedure(				"testBug25624",				"(in _par1 decimal( 10 , 2 ) , in _par2 varchar( 4 )) BEGIN select 1; END");		this.conn.prepareCall("{call testBug25624(?,?)}").close();	}		/**	 * Tests fix for BUG#27867 - Schema objects with identifiers other than	 * the connection character aren't retrieved correctly in ResultSetMetadata.	 * 	 * @throws Exception if the test fails.	 */	public void testBug27867() throws Exception {		try {			String gbkColumnName = "\u00e4\u00b8\u00ad\u00e6\u2013\u2021\u00e6\u00b5\u2039\u00e8\u00af\u2022";			createTable("ColumnNameEncoding", "(" + "`" + gbkColumnName					+ "` varchar(1) default NULL,"					+ "`ASCIIColumn` varchar(1) default NULL"					+ ")ENGINE=MyISAM DEFAULT CHARSET=utf8");						this.rs = this.stmt					.executeQuery("SELECT * FROM ColumnNameEncoding");			java.sql.ResultSetMetaData tblMD = this.rs.getMetaData();			assertEquals(gbkColumnName, tblMD.getColumnName(1));			assertEquals("ASCIIColumn", tblMD.getColumnName(2));		} finally {			closeMemberJDBCResources();		}	}		/**	 * Fixed BUG#27915 - DatabaseMetaData.getColumns() doesn't	 * contain SCOPE_* or IS_AUTOINCREMENT columns.	 * 	 * @throws Exception	 */	public void testBug27915() throws Exception {		createTable("testBug27915",				"(field1 int not null primary key auto_increment, field2 int)");		DatabaseMetaData dbmd = this.conn.getMetaData();		try {			this.rs = dbmd.getColumns(this.conn.getCatalog(), null,					"testBug27915", "%");			this.rs.next();			checkBug27915();			if (versionMeetsMinimum(5, 0)) {				this.rs = getConnectionWithProps("useInformationSchema=true")						.getMetaData().getColumns(this.conn.getCatalog(), null,								"testBug27915", "%");				this.rs.next();				checkBug27915();			}		} finally {			closeMemberJDBCResources();		}	}	private void checkBug27915() throws SQLException {		assertNull(this.rs.getString("SCOPE_CATALOG"));		assertNull(this.rs.getString("SCOPE_SCHEMA"));		assertNull(this.rs.getString("SCOPE_TABLE"));		assertNull(this.rs.getString("SOURCE_DATA_TYPE"));		assertEquals("YES", this.rs.getString("IS_AUTOINCREMENT"));		this.rs.next();				assertNull(this.rs.getString("SCOPE_CATALOG"));		assertNull(this.rs.getString("SCOPE_SCHEMA"));		assertNull(this.rs.getString("SCOPE_TABLE"));		assertNull(this.rs.getString("SOURCE_DATA_TYPE"));		assertEquals("NO", this.rs.getString("IS_AUTOINCREMENT"));	}		/**	 * Tests fix for BUG#27916 - UNSIGNED types not reported	 * via DBMD.getTypeInfo(), and capitalization of types is	 * not consistent between DBMD.getColumns(), RSMD.getColumnTypeName()	 * and DBMD.getTypeInfo().	 * 	 * This fix also ensures that the precision of UNSIGNED MEDIUMINT	 * and UNSIGNED BIGINT is reported correctly via DBMD.getColumns().	 * 	 * @throws Exception	 */	public void testBug27916() throws Exception {		createTable(				"testBug27916",				"(field1 TINYINT UNSIGNED, field2 SMALLINT UNSIGNED, field3 INT UNSIGNED, field4 INTEGER UNSIGNED, field5 MEDIUMINT UNSIGNED, field6 BIGINT UNSIGNED)");		ResultSetMetaData rsmd = this.stmt.executeQuery(				"SELECT * FROM testBug27916").getMetaData();		HashMap typeNameToPrecision = new HashMap();		this.rs = this.conn.getMetaData().getTypeInfo();		while (this.rs.next()) {			typeNameToPrecision.put(this.rs.getString("TYPE_NAME"), this.rs					.getObject("PRECISION"));		}		this.rs = this.conn.getMetaData().getColumns(this.conn.getCatalog(),				null, "testBug27916", "%");		for (int i = 0; i < rsmd.getColumnCount(); i++) {			this.rs.next();			String typeName = this.rs.getString("TYPE_NAME");			assertEquals(typeName, rsmd.getColumnTypeName(i + 1));			assertEquals(typeName, this.rs.getInt("COLUMN_SIZE"), rsmd					.getPrecision(i + 1));			assertEquals(typeName, new Integer(rsmd.getPrecision(i + 1)),					typeNameToPrecision.get(typeName));		}	}}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一区日韩一区| 国产精品系列在线| 成人美女视频在线看| 夜夜嗨av一区二区三区网页| 久久婷婷色综合| 欧美日韩美女一区二区| av在线不卡免费看| 精品一二三四区| 亚洲成av人片一区二区| 亚洲欧美视频在线观看| 国产亚洲短视频| 欧美电影免费观看高清完整版在线观看| 成人av网在线| 国产一区激情在线| 免费久久精品视频| 天堂一区二区在线| 一区二区三区av电影 | 99久久99久久久精品齐齐| 麻豆精品在线观看| 爽好多水快深点欧美视频| 亚洲欧洲精品一区二区三区| 亚洲精品一区二区精华| 91精品国产aⅴ一区二区| 欧美视频第二页| 91蝌蚪porny| 99精品一区二区| 国产**成人网毛片九色| 国产成人午夜高潮毛片| 狠狠色狠狠色综合系列| 久久国产人妖系列| 伦理电影国产精品| 麻豆精品一区二区综合av| 亚洲丶国产丶欧美一区二区三区| 亚洲精品欧美在线| 亚洲综合在线电影| 一区二区三区精品在线| 国内精品久久久久影院色| 日韩精品福利网| 亚洲成av人**亚洲成av**| 亚洲va欧美va人人爽| 亚洲电影一级黄| 日韩精彩视频在线观看| 五月天激情综合网| 日本强好片久久久久久aaa| 全国精品久久少妇| 免费成人在线观看| 国产一区二区三区国产| 懂色av一区二区在线播放| 成人动漫av在线| 欧美一级一区二区| 欧美一区二区美女| 精品国产露脸精彩对白| 久久久久国产成人精品亚洲午夜| 中文在线一区二区| 亚洲免费观看高清完整版在线观看| 亚洲免费在线观看视频| 一区二区久久久| 日本成人在线网站| 国产米奇在线777精品观看| 国产精品18久久久| 91片在线免费观看| 欧美肥妇free| 国产亚洲福利社区一区| 亚洲色图视频网站| 日韩精品91亚洲二区在线观看 | 成人av动漫在线| 欧洲精品在线观看| 欧美电影精品一区二区 | 免费成人在线观看| 国产成人啪免费观看软件| 一本大道久久精品懂色aⅴ| 欧美日韩中文国产| 精品国产91久久久久久久妲己| 国产午夜精品一区二区三区嫩草 | 天堂资源在线中文精品| 激情六月婷婷综合| 91无套直看片红桃| 日韩三级免费观看| 国产精品二三区| 日韩电影在线一区| 成人丝袜视频网| 69精品人人人人| 1000部国产精品成人观看| 三级不卡在线观看| av一区二区三区在线| 日韩一区二区三区在线| 亚洲青青青在线视频| 狠狠色狠狠色综合日日91app| 91老司机福利 在线| 精品国产不卡一区二区三区| 亚洲日本电影在线| 国产呦萝稀缺另类资源| 欧美日韩一卡二卡| 国产精品国产精品国产专区不片| 免费在线看成人av| 一本在线高清不卡dvd| 久久人人97超碰com| 亚洲超碰精品一区二区| 91在线你懂得| 久久综合一区二区| 偷拍与自拍一区| 91丝袜呻吟高潮美腿白嫩在线观看| 日韩一级大片在线| 一区二区三区在线视频播放| 国产成人免费在线视频| 日韩午夜精品视频| 亚洲福利一二三区| 91视频在线观看免费| 国产婷婷一区二区| 激情图区综合网| 在线综合+亚洲+欧美中文字幕| 中文字幕一区二区三区在线观看| 国产专区综合网| 日韩精品一区二区三区三区免费 | 91福利在线观看| 国产精品蜜臀在线观看| 国产综合久久久久久鬼色| 欧美一区二区三区视频在线观看| 亚洲已满18点击进入久久| 99久久国产综合精品色伊| 国产欧美一区二区在线| 国产福利视频一区二区三区| 精品国精品国产尤物美女| 日韩国产欧美在线观看| 欧美色网一区二区| 亚洲一二三四久久| 91黄色激情网站| 亚洲精品福利视频网站| 色综合久久中文字幕| 亚洲视频一区在线观看| 91无套直看片红桃| 成人免费在线视频| 色婷婷国产精品综合在线观看| 国产精品情趣视频| 不卡一区中文字幕| 亚洲视频 欧洲视频| 色综合久久天天| 亚洲精品高清视频在线观看| 在线亚洲一区二区| 一区二区三区免费在线观看| 在线看一区二区| 五月综合激情婷婷六月色窝| 欧美亚男人的天堂| 日本午夜一区二区| 精品精品国产高清一毛片一天堂| 国精产品一区一区三区mba视频| 国产亚洲制服色| 不卡电影一区二区三区| 亚洲精品一二三| 欧美酷刑日本凌虐凌虐| 蜜臀av性久久久久蜜臀av麻豆| 亚洲精品在线网站| www.亚洲人| 一区二区三区精品在线观看| 制服丝袜激情欧洲亚洲| 国内精品视频一区二区三区八戒 | 亚洲v日本v欧美v久久精品| 911精品国产一区二区在线| 久久国产欧美日韩精品| 中文字幕国产一区| 在线欧美日韩国产| 麻豆国产精品一区二区三区| 欧美国产精品中文字幕| 色狠狠桃花综合| 青青草原综合久久大伊人精品 | 一区二区三区视频在线看| 3d成人h动漫网站入口| 国产一区二区三区在线观看免费| 国产精品美女久久久久久久久久久 | 久久精品噜噜噜成人av农村| 国产日韩高清在线| 欧洲日韩一区二区三区| 极品少妇xxxx偷拍精品少妇| 国产人成亚洲第一网站在线播放| 91在线精品秘密一区二区| 五月天一区二区| 欧美激情中文字幕| 欧美日韩一卡二卡三卡 | 欧美精品日韩精品| 国产精品一二三四五| 亚洲精品免费在线观看| 欧美α欧美αv大片| 不卡一二三区首页| 日本成人中文字幕| 亚洲免费观看高清在线观看| 精品国产一二三区| 色狠狠av一区二区三区| 国产乱码精品一区二区三区忘忧草| 亚洲女与黑人做爰| 久久网站热最新地址| 欧美日本精品一区二区三区| 成人精品国产免费网站| 日韩av不卡一区二区| 亚洲免费观看高清完整版在线观看熊| 日韩欧美国产综合| 欧美丝袜丝交足nylons图片| 成人黄色小视频在线观看| 另类小说视频一区二区| 一区二区免费看| 国产精品久久久久一区二区三区|