Mercurial > hg > monetdb-java
comparison src/main/java/org/monetdb/jdbc/MonetPreparedStatement.java @ 943:ff075ed5ce81
Spell check.
author | Sjoerd Mullender <sjoerd@acm.org> |
---|---|
date | Thu, 09 Jan 2025 10:56:14 +0100 (3 months ago) |
parents | d416e9b6b3d0 |
children | 5cc071c5c170 |
comparison
equal
deleted
inserted
replaced
942:45c26b1a0677 | 943:ff075ed5ce81 |
---|---|
142 * For a PREPARE statement the server sends back a result set | 142 * For a PREPARE statement the server sends back a result set |
143 * with info on all the result columns and parameters of a | 143 * with info on all the result columns and parameters of a |
144 * parameterized query. This result set however needs to be | 144 * parameterized query. This result set however needs to be |
145 * read in one DataBlockResponse due to protocol limitations. | 145 * read in one DataBlockResponse due to protocol limitations. |
146 * This requires the fetchSize needs to be set large enough | 146 * This requires the fetchSize needs to be set large enough |
147 * to retrieve all rows in one go, else we get eror: | 147 * to retrieve all rows in one go, else we get error: |
148 * <pre>resultBlocks[1] should have been fetched by now</pre> | 148 * <pre>resultBlocks[1] should have been fetched by now</pre> |
149 * See also: https://github.com/MonetDB/MonetDB/issues/7337 | 149 * See also: https://github.com/MonetDB/MonetDB/issues/7337 |
150 */ | 150 */ |
151 final int originalFetchSize = getFetchSize(); | 151 final int originalFetchSize = getFetchSize(); |
152 // increase the fetchSize temporarily before sending the PREPARE statement | 152 // increase the fetchSize temporarily before sending the PREPARE statement |
1121 public void setNClob(final int parameterIndex, final Reader r, final long length) throws SQLException { | 1121 public void setNClob(final int parameterIndex, final Reader r, final long length) throws SQLException { |
1122 throw newSQLFeatureNotSupportedException("setNClob"); | 1122 throw newSQLFeatureNotSupportedException("setNClob"); |
1123 } | 1123 } |
1124 | 1124 |
1125 /** | 1125 /** |
1126 * Sets the designated paramter to the given String object. The | 1126 * Sets the designated parameter to the given String object. The |
1127 * driver converts this to a SQL NCHAR or NVARCHAR or LONGNVARCHAR | 1127 * driver converts this to a SQL NCHAR or NVARCHAR or LONGNVARCHAR |
1128 * value (depending on the argument's size relative to the driver's | 1128 * value (depending on the argument's size relative to the driver's |
1129 * limits on NVARCHAR values) when it sends it to the database. | 1129 * limits on NVARCHAR values) when it sends it to the database. |
1130 * | 1130 * |
1131 * @param parameterIndex the first parameter is 1, the second is 2, ... | 1131 * @param parameterIndex the first parameter is 1, the second is 2, ... |