mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
GitOrigin-RevId: 8b2b63fc6db476ca0c2cfe5cadd84db6c4236d0f
14 lines
523 B
HTML
14 lines
523 B
HTML
<html>
|
|
<body>
|
|
Reports attempts to access column 0 of <code>java.sql.ResultSet</code> or <code>java.sql.PreparedStatement</code>.
|
|
For historical reasons, columns of <code>java.sql.ResultSet</code> and <code>java.sql.PreparedStatement</code>
|
|
are numbered starting with <b>1</b>, rather than with <b>0</b>, and accessing column 0 is a common error in JDBC programming.
|
|
<p><b>Example:</b></p>
|
|
<pre><code>
|
|
String getName(ResultSet rs) {
|
|
<b>return</b> rs.getString(0);
|
|
}
|
|
</code></pre>
|
|
<!-- tooltip end -->
|
|
</body>
|
|
</html> |