File tree Expand file tree Collapse file tree 7 files changed +2
-9
lines changed
org/postgresql/test/jdbc2 Expand file tree Collapse file tree 7 files changed +2
-9
lines changed Original file line number Diff line number Diff line change 1
1
package example ;
2
2
3
- import java .io .*;
4
3
import java .sql .*;
5
4
import java .util .*;
6
5
Original file line number Diff line number Diff line change 2
2
3
3
import java .io .*;
4
4
import java .sql .*;
5
- import java .text .*;
6
5
7
6
/*
8
7
*
9
- * $Id: basic.java,v 1.13 2002 /09/06 21:23:05 momjian Exp $
8
+ * $Id: basic.java,v 1.14 2003 /09/09 11:24:04 barry Exp $
10
9
*
11
10
* This example tests the basic components of the JDBC driver, and shows
12
11
* how even the simplest of queries can be implemented.
Original file line number Diff line number Diff line change 2
2
3
3
import java .io .*;
4
4
import java .sql .*;
5
- import java .text .*;
6
5
7
6
/*
8
7
* This example tests the various date styles that are available to postgresql.
Original file line number Diff line number Diff line change 2
2
3
3
import java .io .*;
4
4
import java .sql .*;
5
- import java .text .*;
6
5
7
6
/*
8
7
* This example application is not really an example. It actually performs
Original file line number Diff line number Diff line change <
8000
col width="100%"/>2
2
3
3
import java .io .*;
4
4
import java .sql .*;
5
- import java .text .*;
6
5
7
6
/*
8
7
* This example application demonstrates some of the drivers other features
Original file line number Diff line number Diff line change 2
2
3
3
import java .io .*;
4
4
import java .sql .*;
5
- import java .text .*;
6
5
7
6
// rare in user code, but we use the LargeObject API in this test
8
7
import org .postgresql .largeobject .*;
@@ -106,7 +105,7 @@ public void doexample() throws SQLException
106
105
// will yield as long as either of the children are still running
107
106
System .out .println ("Waiting for threads to run" );
108
107
while (thread1 .isAlive () || thread2 .isAlive () || thread3 .isAlive ())
109
- thread0 .yield ();
108
+ Thread .yield ();
110
109
}
111
110
finally
112
111
{
Original file line number Diff line number Diff line change 4
4
import java .sql .Connection ;
5
5
import java .sql .ResultSet ;
6
6
import java .sql .Statement ;
7
- import java .sql .SQLException ;
8
7
9
8
import junit .framework .TestCase ;
10
9
You can’t perform that action at this time.
0 commit comments