rspec/rules/S2695/description.adoc

2 lines
274 B
Plaintext
Raw Normal View History

The parameters in a `PreparedStatement` are indexed beginning at 1, not 0, so using any "set" method of a `PreparedStatement` with a number less than 1 is a bug, as is using an index higher than the number of parameters. The same indexing style also applies to `ResultSet`.