package example;
-import java.io.*;
import java.sql.*;
import java.util.*;
import java.io.*;
import java.sql.*;
-import java.text.*;
/*
*
- * $Id: basic.java,v 1.13 2002/09/06 21:23:05 momjian Exp $
+ * $Id: basic.java,v 1.14 2003/09/09 11:24:04 barry Exp $
*
* This example tests the basic components of the JDBC driver, and shows
* how even the simplest of queries can be implemented.
import java.io.*;
import java.sql.*;
-import java.text.*;
/*
* This example tests the various date styles that are available to postgresql.
import java.io.*;
import java.sql.*;
-import java.text.*;
/*
* This example application is not really an example. It actually performs
import java.io.*;
import java.sql.*;
-import java.text.*;
/*
* This example application demonstrates some of the drivers other features
import java.io.*;
import java.sql.*;
-import java.text.*;
// rare in user code, but we use the LargeObject API in this test
import org.postgresql.largeobject.*;
// will yield as long as either of the children are still running
System.out.println("Waiting for threads to run");
while (thread1.isAlive() || thread2.isAlive() || thread3.isAlive())
- thread0.yield();
+ Thread.yield();
}
finally
{
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.Statement;
-import java.sql.SQLException;
import junit.framework.TestCase;