|
1 | 1 | <!--
|
2 |
| -$Header: /cvsroot/pgsql/doc/src/sgml/Attic/jdbc.sgml,v 1.22 2001/09/10 21:58:46 petere Exp $ |
| 2 | +$Header: /cvsroot/pgsql/doc/src/sgml/Attic/jdbc.sgml,v 1.23 2001/09/12 15:49:10 momjian Exp $ |
3 | 3 | -->
|
4 | 4 |
|
5 | 5 | <chapter id="jdbc">
|
@@ -576,12 +576,12 @@ fis.close();
|
576 | 576 | <classname>Statement</classname> class can equally be used.)
|
577 | 577 |
|
578 | 578 | <programlisting>
|
579 |
| -PreparedStatement ps = con.prepareStatement("SELECT oid FROM images WHERE name=?"); |
| 579 | +PreparedStatement ps = con.prepareStatement("SELECT imgoid FROM images WHERE imgname=?"); |
580 | 580 | ps.setString(1, "myimage.gif");
|
581 | 581 | ResultSet rs = ps.executeQuery();
|
582 | 582 | if (rs != null) {
|
583 | 583 | while(rs.next()) {
|
584 |
| - InputStream is = rs.getBinaryInputStream(1); |
| 584 | + InputStream is = rs.getBinaryStream(1); |
585 | 585 | // use the stream in some way here
|
586 | 586 | is.close();
|
587 | 587 | }
|
@@ -1277,7 +1277,7 @@ Variables
|
1277 | 1277 |
|
1278 | 1278 | This is the center point
|
1279 | 1279 |
|
1280 |
| -public double radius |
| 1280 | + double radius |
1281 | 1281 |
|
1282 | 1282 | This is the radius
|
1283 | 1283 |
|
@@ -1993,7 +1993,7 @@ public byte[] read(int len) throws SQLException
|
1993 | 1993 |
|
1994 | 1994 | <listitem>
|
1995 | 1995 | <synopsis>
|
1996 |
| -public void read(byte buf[], |
| 1996 | +public int read(byte buf[], |
1997 | 1997 | int off,
|
1998 | 1998 | int len) throws SQLException
|
1999 | 1999 | </synopsis>
|
@@ -2416,7 +2416,7 @@ here, and will be documented in the main documents in more detail.
|
2416 | 2416 |
|
2417 | 2417 | Constructors
|
2418 | 2418 |
|
2419 |
| - public Serialize(Connection c, |
| 2419 | + public Serialize(org.postgresql.Connection c, |
2420 | 2420 | String type) throws SQLException
|
2421 | 2421 |
|
2422 | 2422 | This creates an instance that can be used to serialize
|
@@ -2459,7 +2459,7 @@ table, and will not overwrite the old entries.
|
2459 | 2459 | Throws: SQLException
|
2460 | 2460 | on error
|
2461 | 2461 |
|
2462 |
| - public static void create(Connection con, |
| 2462 | + public static void create(org.postgresql.Connection con, |
2463 | 2463 | Object o) throws SQLException
|
2464 | 2464 |
|
2465 | 2465 | This method is not used by the driver, but it creates a
|
@@ -2501,7 +2501,7 @@ table, and will not overwrite the old entries.
|
2501 | 2501 | Throws: SQLException
|
2502 | 2502 | on error
|
2503 | 2503 |
|
2504 |
| - public static void create(Connection con, |
| 2504 | + public static void create(org.postgresql.Connection con, |
2505 | 2505 | Object o) throws SQLException
|
2506 | 2506 |
|
2507 | 2507 | This method is not used by the driver, but it creates a
|
@@ -2907,9 +2907,9 @@ sent over the network stream
|
2907 | 2907 | Contains static methods to encrypt and compare passwords with Unix
|
2908 | 2908 | encrypted passwords.
|
2909 | 2909 |
|
2910 |
| - See John Dumas's Java Crypt page for the original source. |
| 2910 | + See John Dumas's Java Crypt page for the original source. |
2911 | 2911 |
|
2912 |
| - http://www.zeh.com/local/jfd/crypt.html |
| 2912 | + (Invalid URL) http://www.zeh.com/local/jfd/crypt.html |
2913 | 2913 |
|
2914 | 2914 | Methods
|
2915 | 2915 |
|
|
0 commit comments