1 30 31 32 package org.hsqldb.test; 33 34 import java.sql.Connection ; 35 import java.sql.Statement ; 36 37 import junit.framework.TestCase; 38 import junit.framework.TestResult; 39 40 47 public class TestBug808460 extends TestBase { 48 49 public TestBug808460(String name) { 50 super(name); 51 } 52 53 54 public void test() throws Exception { 55 56 Connection conn = newConnection(); 57 Statement stmt = conn.createStatement(); 58 59 stmt.executeQuery("SELECT * FROM INFORMATION_SCHEMA.SYSTEM_SESSIONS"); 60 conn.close(); 61 62 conn = newConnection(); 63 stmt = conn.createStatement(); 64 65 stmt.executeQuery("SELECT * FROM INFORMATION_SCHEMA.SYSTEM_SESSIONS"); 66 conn.close(); 67 } 68 69 70 public static void main(String [] args) throws Exception { 71 72 TestResult result; 73 TestCase test; 74 java.util.Enumeration failures; 75 int count; 76 77 result = new TestResult(); 78 test = new TestBug808460("test"); 79 80 test.run(result); 81 82 count = result.failureCount(); 83 84 System.out.println("TestBug808460 failure count: " + count); 85 86 failures = result.failures(); 87 88 while (failures.hasMoreElements()) { 89 System.out.println(failures.nextElement()); 90 } 91 } 92 } 93 | Popular Tags |