8226808: PreparedStatement javadoc typo

Reviewed-by: bpb, joehw
This commit is contained in:
Lance Andersen 2019-07-26 15:06:22 -04:00
parent 136cfdb1e3
commit d711c4e18e

View file

@ -47,12 +47,13 @@ import java.io.InputStream;
* <P> * <P>
* In the following example of setting a parameter, <code>con</code> represents * In the following example of setting a parameter, <code>con</code> represents
* an active connection: * an active connection:
* <PRE> * <pre>{@code
* BigDecimal sal = new BigDecimal("153833.00");
* PreparedStatement pstmt = con.prepareStatement("UPDATE EMPLOYEES * PreparedStatement pstmt = con.prepareStatement("UPDATE EMPLOYEES
* SET SALARY = ? WHERE ID = ?"); * SET SALARY = ? WHERE ID = ?");
* pstmt.setBigDecimal(1, 153833.00) * pstmt.setBigDecimal(1, sal);
* pstmt.setInt(2, 110592) * pstmt.setInt(2, 110592);
* </PRE> * }</pre>
* *
* @see Connection#prepareStatement * @see Connection#prepareStatement
* @see ResultSet * @see ResultSet