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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? numbersregressiontest.java

?? mysql jdbc驅(qū)動(dòng)程序 mysql jdbc驅(qū)動(dòng)程序 mysql jdbc驅(qū)動(dòng)程序 mysql jdbc驅(qū)動(dòng)程序
?? JAVA
字號(hào):
/* Copyright (C) 2002-2004 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 testsuite.regression;import java.sql.ResultSetMetaData;import java.sql.SQLException;import testsuite.BaseTestCase;/** * Tests various number-handling issues that have arrisen in the JDBC driver at * one time or another. *  * @author Mark Matthews */public class NumbersRegressionTest extends BaseTestCase {	/**	 * Constructor for NumbersRegressionTest.	 * 	 * @param name	 *            the test name	 */	public NumbersRegressionTest(String name) {		super(name);	}	/**	 * Runs all test cases	 * 	 * @param args	 *            command-line args	 * 	 * @throws Exception	 *             if any errors occur	 */	public static void main(String[] args) {		junit.textui.TestRunner.run(NumbersRegressionTest.class);	}	/**	 * Tests that BIGINT retrieval works correctly	 * 	 * @throws Exception	 *             if any errors occur	 */	public void testBigInt() throws Exception {		try {			this.stmt.executeUpdate("DROP TABLE IF EXISTS bigIntRegression");			this.stmt					.executeUpdate("CREATE TABLE bigIntRegression ( val BIGINT NOT NULL)");			this.stmt					.executeUpdate("INSERT INTO bigIntRegression VALUES (6692730313872877584)");			this.rs = this.stmt					.executeQuery("SELECT val FROM bigIntRegression");			while (this.rs.next()) {				// check retrieval				long retrieveAsLong = this.rs.getLong(1);				assertTrue(retrieveAsLong == 6692730313872877584L);			}			this.rs.close();			this.stmt.executeUpdate("DROP TABLE IF EXISTS bigIntRegression");			String bigIntAsString = "6692730313872877584";			long parsedBigIntAsLong = Long.parseLong(bigIntAsString);			// check JDK parsing			assertTrue(bigIntAsString					.equals(String.valueOf(parsedBigIntAsLong)));		} finally {			this.stmt.executeUpdate("DROP TABLE IF EXISTS bigIntRegression");		}	}	/**	 * Tests correct type assignment for MySQL FLOAT and REAL datatypes.	 * 	 * @throws Exception	 *             if the test fails.	 */	public void testFloatsAndReals() throws Exception {		try {			this.stmt.executeUpdate("DROP TABLE IF EXISTS floatsAndReals");			this.stmt					.executeUpdate("CREATE TABLE IF NOT EXISTS floatsAndReals(floatCol FLOAT, realCol REAL, doubleCol DOUBLE)");			this.stmt					.executeUpdate("INSERT INTO floatsAndReals VALUES (0, 0, 0)");			this.rs = this.stmt					.executeQuery("SELECT floatCol, realCol, doubleCol FROM floatsAndReals");			ResultSetMetaData rsmd = this.rs.getMetaData();			this.rs.next();			assertTrue(rsmd.getColumnClassName(1).equals("java.lang.Float"));			assertTrue(this.rs.getObject(1).getClass().getName().equals(					"java.lang.Float"));			assertTrue(rsmd.getColumnClassName(2).equals("java.lang.Double"));			assertTrue(this.rs.getObject(2).getClass().getName().equals(					"java.lang.Double"));			assertTrue(rsmd.getColumnClassName(3).equals("java.lang.Double"));			assertTrue(this.rs.getObject(3).getClass().getName().equals(					"java.lang.Double"));		} finally {			this.stmt.executeUpdate("DROP TABLE IF EXISTS floatsAndReals");		}	}	/**	 * Tests that ResultSetMetaData precision and scale methods work correctly	 * for all numeric types.	 * 	 * @throws Exception	 *             if any errors occur	 */	public void testPrecisionAndScale() throws Exception {		testPrecisionForType("TINYINT", 8, -1, false);		testPrecisionForType("TINYINT", 8, -1, true);		testPrecisionForType("SMALLINT", 8, -1, false);		testPrecisionForType("SMALLINT", 8, -1, true);		testPrecisionForType("MEDIUMINT", 8, -1, false);		testPrecisionForType("MEDIUMINT", 8, -1, true);		testPrecisionForType("INT", 8, -1, false);		testPrecisionForType("INT", 8, -1, true);		testPrecisionForType("BIGINT", 8, -1, false);		testPrecisionForType("BIGINT", 8, -1, true);		testPrecisionForType("FLOAT", 8, 4, false);		testPrecisionForType("FLOAT", 8, 4, true);		testPrecisionForType("DOUBLE", 8, 4, false);		testPrecisionForType("DOUBLE", 8, 4, true);		testPrecisionForType("DECIMAL", 8, 4, false);		testPrecisionForType("DECIMAL", 8, 4, true);		testPrecisionForType("DECIMAL", 9, 0, false);		testPrecisionForType("DECIMAL", 9, 0, true);	}	private void testPrecisionForType(String typeName, int m, int d,			boolean unsigned) throws Exception {		try {			this.stmt					.executeUpdate("DROP TABLE IF EXISTS precisionAndScaleRegression");			StringBuffer createStatement = new StringBuffer(					"CREATE TABLE precisionAndScaleRegression ( val ");			createStatement.append(typeName);			createStatement.append("(");			createStatement.append(m);			if (d != -1) {				createStatement.append(",");				createStatement.append(d);			}			createStatement.append(")");			if (unsigned) {				createStatement.append(" UNSIGNED ");			}			createStatement.append(" NOT NULL)");			this.stmt.executeUpdate(createStatement.toString());			this.rs = this.stmt					.executeQuery("SELECT val FROM precisionAndScaleRegression");			ResultSetMetaData rsmd = this.rs.getMetaData();			assertTrue("Precision returned incorrectly for type " + typeName					+ ", " + m + " != rsmd.getPrecision() = "					+ rsmd.getPrecision(1), rsmd.getPrecision(1) == m);			if (d != -1) {				assertTrue("Scale returned incorrectly for type " + typeName						+ ", " + d + " != rsmd.getScale() = "						+ rsmd.getScale(1), rsmd.getScale(1) == d);			}		} finally {			if (this.rs != null) {				try {					this.rs.close();				} catch (Exception ex) {					// ignore				}			}			this.stmt					.executeUpdate("DROP TABLE IF EXISTS precisionAndScaleRegression");		}	}	public void testIntShouldReturnLong() throws Exception {		try {			this.stmt.executeUpdate("DROP TABLE IF EXISTS testIntRetLong");			this.stmt.executeUpdate("CREATE TABLE testIntRetLong(field1 INT)");			this.stmt.executeUpdate("INSERT INTO testIntRetLong VALUES (1)");			this.rs = this.stmt.executeQuery("SELECT * FROM testIntRetLong");			this.rs.next();			assertTrue(this.rs.getObject(1).getClass().equals(					java.lang.Integer.class));		} finally {			if (this.rs != null) {				try {					this.rs.close();				} catch (SQLException sqlEx) {					// ignore				}				this.rs = null;			}			this.stmt.executeUpdate("DROP TABLE IF EXISTS testIntRetLong");		}	}	/**	 * Tests fix for BUG#5729, UNSIGNED BIGINT returned incorrectly	 * 	 * @throws Exception	 *             if the test fails	 */	public void testBug5729() throws Exception {		if (versionMeetsMinimum(4, 1)) {			String valueAsString = "1095923280000";			try {				this.stmt.executeUpdate("DROP TABLE IF EXISTS testBug5729");				this.stmt						.executeUpdate("CREATE TABLE testBug5729(field1 BIGINT UNSIGNED)");				this.stmt.executeUpdate("INSERT INTO testBug5729 VALUES ("						+ valueAsString + ")");				this.rs = this.conn.prepareStatement(						"SELECT * FROM testBug5729").executeQuery();				this.rs.next();				assertTrue(this.rs.getObject(1).toString()						.equals(valueAsString));			} finally {				this.stmt.executeUpdate("DROP TABLE IF EXISTS testBug5729");			}		}	}	/**	 * Tests fix for BUG#8484 - ResultSet.getBigDecimal() throws exception when	 * rounding would need to occur to set scale.	 * 	 * @throws Exception	 *             if the test fails	 * @deprecated	 */	public void testBug8484() throws Exception {		try {			this.stmt.executeUpdate("DROP TABLE IF EXISTS testBug8484");			this.stmt					.executeUpdate("CREATE TABLE testBug8484 (field1 DECIMAL(16, 8), field2 varchar(32))");			this.stmt					.executeUpdate("INSERT INTO testBug8484 VALUES (12345678.12345678, '')");			this.rs = this.stmt					.executeQuery("SELECT field1, field2 FROM testBug8484");			this.rs.next();			assertEquals("12345678.123", this.rs.getBigDecimal(1, 3).toString());			assertEquals("0.000", this.rs.getBigDecimal(2, 3).toString());			this.pstmt = this.conn					.prepareStatement("SELECT field1, field2 FROM testBug8484");			this.rs = this.pstmt.executeQuery();			this.rs.next();			assertEquals("12345678.123", this.rs.getBigDecimal(1, 3).toString());			assertEquals("0.000", this.rs.getBigDecimal(2, 3).toString());		} finally {			this.stmt.executeUpdate("DROP TABLE IF EXISTS testBug8484");		}	}}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲成人免费影院| 欧美一级在线免费| 欧美亚洲另类激情小说| 欧美日免费三级在线| 欧美成人一区二区三区片免费| 久久精品亚洲乱码伦伦中文| 中文字幕亚洲一区二区va在线| 一区二区三区国产| 久久精品国产一区二区| 国产一区二区三区视频在线播放| 99久久国产免费看| 欧美伦理视频网站| 日本精品一区二区三区高清| 欧美大片一区二区三区| 亚洲人午夜精品天堂一二香蕉| 日韩国产一区二| 成人app在线观看| 91精品国产综合久久福利软件| 日本一区二区三区dvd视频在线| 亚洲尤物在线视频观看| 国精产品一区一区三区mba桃花 | 欧美一级免费大片| 国产精品麻豆欧美日韩ww| 天天色天天操综合| www.欧美色图| 日韩精品一区二区三区视频| 亚洲男同性恋视频| 国产综合久久久久影院| 欧美三级电影网| 国产精品久久久久久久久晋中 | 欧美电影免费观看高清完整版| 国产精品国产a级| 精品无码三级在线观看视频| 在线观看av一区| 中文字幕欧美激情| 久久av老司机精品网站导航| 欧美影院午夜播放| 国产精品久久久久久亚洲毛片 | 久久婷婷国产综合国色天香| 亚洲大片精品永久免费| 91在线视频在线| 国产欧美一区二区精品性色| 日本网站在线观看一区二区三区 | |精品福利一区二区三区| 精品一区二区免费视频| 在线播放91灌醉迷j高跟美女 | 欧美中文字幕一二三区视频| 国产日产欧产精品推荐色 | 久久综合九色综合97婷婷女人 | 欧美大片免费久久精品三p| 香蕉av福利精品导航| 99久久精品99国产精品| 久久久久九九视频| 久久精品免费看| 91精品婷婷国产综合久久性色 | 欧美电影在哪看比较好| 伊人性伊人情综合网| 成人激情免费网站| 国产亚洲视频系列| 韩国女主播成人在线观看| 欧美高清视频www夜色资源网| 亚洲精品国产品国语在线app| 成人深夜在线观看| 国产三级三级三级精品8ⅰ区| 老司机免费视频一区二区| 在线电影院国产精品| 亚洲一区二区在线播放相泽| 日本高清不卡aⅴ免费网站| 国产精品成人在线观看| 成人精品国产福利| 欧美国产精品v| 成人一区在线观看| 国产精品久久午夜| 成人ar影院免费观看视频| 国产精品久久久久aaaa| 1000精品久久久久久久久| 亚洲国产成人av好男人在线观看| 91福利小视频| 亚洲影视在线观看| 欧美日韩卡一卡二| 丝瓜av网站精品一区二区| 欧美日韩高清一区二区不卡| 图片区日韩欧美亚洲| 欧美精选在线播放| 久久精品国产一区二区三区免费看| 日韩精品一区二区三区视频在线观看| 久久爱www久久做| 久久久精品免费免费| 成人av电影在线观看| 一区二区三区毛片| 欧美日本国产视频| 另类调教123区| 国产欧美一区二区三区沐欲 | 国产精品的网站| 91久久线看在观草草青青 | 日韩欧美中文字幕公布| 激情综合一区二区三区| 国产三级精品在线| 一本大道久久a久久精品综合| 亚洲一区日韩精品中文字幕| 91精品国产全国免费观看| 国产中文字幕精品| 一区在线中文字幕| 欧美日韩精品欧美日韩精品一综合| 日韩成人精品在线观看| 久久精品欧美一区二区三区不卡 | 亚洲色图欧洲色图| 91.成人天堂一区| 国产成人午夜高潮毛片| 亚洲欧美一区二区三区极速播放| 欧美色窝79yyyycom| 精品一区二区在线免费观看| 国产精品欧美久久久久无广告| 色嗨嗨av一区二区三区| 蜜桃av噜噜一区| 中文字幕国产一区| 欧美精品xxxxbbbb| 成人国产精品免费| 五月激情六月综合| 日本一区二区视频在线| 欧美男男青年gay1069videost| 国产九九视频一区二区三区| 一区二区三区av电影| 精品国产乱码久久久久久牛牛| 93久久精品日日躁夜夜躁欧美| 免费看欧美女人艹b| 国产精品全国免费观看高清| 欧美日韩国产高清一区二区| 国产成人免费在线观看| 午夜在线成人av| 国产精品毛片久久久久久 | 国产一区二区福利| 亚洲一二三四在线观看| 久久久久久**毛片大全| 欧美高清一级片在线| 99精品国产视频| 久88久久88久久久| 亚洲午夜av在线| 国产精品日产欧美久久久久| 日韩一区二区三区在线| 色噜噜夜夜夜综合网| 国产成人亚洲精品青草天美 | 日韩亚洲欧美成人一区| 97成人超碰视| 国产一本一道久久香蕉| 五月综合激情婷婷六月色窝| 国产精品美女一区二区| 精品久久一区二区三区| 欧美久久久久中文字幕| 91看片淫黄大片一级在线观看| 一区二区三区四区蜜桃| 91偷拍与自偷拍精品| 偷拍与自拍一区| 国产精品免费av| 欧美日韩精品一区视频| 成人黄色在线看| 精品亚洲国产成人av制服丝袜| 亚洲第一精品在线| 亚洲婷婷在线视频| 日本一区二区三区免费乱视频| 日韩欧美国产电影| 91.xcao| 欧美性大战久久久久久久蜜臀| 成人av片在线观看| 国产福利一区二区三区视频| 久久电影国产免费久久电影| 天天色综合天天| 午夜精品久久一牛影视| 亚洲一区二区av电影| 一区二区三区久久| 有码一区二区三区| 亚洲日本护士毛茸茸| 国产精品国产自产拍在线| 欧美韩国日本一区| 国产蜜臀97一区二区三区| 国产日韩欧美综合一区| 国产校园另类小说区| 久久精品一区二区三区四区| www激情久久| 久久综合色播五月| 久久日韩粉嫩一区二区三区| wwwwxxxxx欧美| 久久久久久久久久久99999| 久久精品视频免费| 国产蜜臀av在线一区二区三区| 日本一区二区三级电影在线观看 | 韩国成人在线视频| 韩国精品久久久| 国产福利一区二区| av一区二区三区| 91一区二区三区在线观看| 色综合久久久久综合体| 在线观看av一区| 欧美一区二区在线看| 日韩精品一区二区三区视频| 久久久精品影视| 中文字幕一区二区三区四区不卡 | 91免费在线看| 欧美在线免费观看亚洲| 欧美日韩精品欧美日韩精品一综合|