Added:
trunk/jdbc-4-0-examples/src/examples/cex2007/ConnectionExamples.java
Removed:
trunk/jdbc-4-0-examples/src/testsuite/simple/jdbc4/
Modified:
trunk/jdbc-4-0-examples/.classpath
Log:
Removed tests (not examples) that didn't belong in this project.
Modified: trunk/jdbc-4-0-examples/.classpath
===================================================================
--- trunk/jdbc-4-0-examples/.classpath 2007-04-23 23:41:29 UTC (rev 6410)
+++ trunk/jdbc-4-0-examples/.classpath 2007-04-24 18:32:36 UTC (rev 6411)
@@ -2,8 +2,7 @@
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="lib" path="C:/jvms/jdk1.6.0/jre/lib/rt.jar" sourcepath="C:/jvms/jdk1.6.0/src.zip"/>
- <classpathentry kind="lib" path="C:/src/spring-framework-2.0.3/dist/spring.jar"/>
- <classpathentry kind="lib" path="/connector-j-5-1/bin"/>
+ <classpathentry kind="lib" path="/connector-j-5-1/bin" sourcepath="/connector-j-5-1/src"/>
<classpathentry kind="lib" path="/connector-j-5-1/src/lib/junit.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
Added: trunk/jdbc-4-0-examples/src/examples/cex2007/ConnectionExamples.java
===================================================================
--- trunk/jdbc-4-0-examples/src/examples/cex2007/ConnectionExamples.java 2007-04-23 23:41:29 UTC (rev 6410)
+++ trunk/jdbc-4-0-examples/src/examples/cex2007/ConnectionExamples.java 2007-04-24 18:32:36 UTC (rev 6411)
@@ -0,0 +1,50 @@
+/*
+ Copyright (C) 2007 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 examples.cex2007;
+
+import java.util.Properties;
+
+import testsuite.BaseTestCase;
+
+public class ConnectionExamples extends BaseTestCase {
+
+ public ConnectionExamples(String name) {
+ super(name);
+
+ }
+
+ public void testClientInfo() throws Exception {
+ this.conn.setClientInfo("app", "ConnectionTest");
+ Throwable t = new Throwable();
+ StackTraceElement[] stack = t.getStackTrace();
+
+ this.conn.setClientInfo("method",
+ stack[0].getMethodName() + "(" + stack[0].getLineNumber() + ")");
+
+ Properties props = this.conn.getClientInfo();
+
+ this.stmt.executeQuery("SELECT SLEEP(30)");
+ }
+}
\ No newline at end of file
| Thread |
|---|
| • Connector/J commit: r6411 - in trunk/jdbc-4-0-examples: . src/examples/cex2007 src/testsuite/simple | mmatthews | 24 Apr |