Mercurial > hg > monetdb-java
comparison src/main/java/org/monetdb/jdbc/MonetConnection.java @ 702:b4e968e5bd74
Some improvements.
author | Martin van Dinther <martin.van.dinther@monetdbsolutions.com> |
---|---|
date | Thu, 08 Dec 2022 19:13:46 +0100 (2022-12-08) |
parents | f89882b07614 |
children | 1c9d4c2a6947 |
comparison
equal
deleted
inserted
replaced
701:f89882b07614 | 702:b4e968e5bd74 |
---|---|
2789 forwardOnly = forward; | 2789 forwardOnly = forward; |
2790 } | 2790 } |
2791 | 2791 |
2792 /** | 2792 /** |
2793 * addLine adds a String of data to this object's data array. | 2793 * addLine adds a String of data to this object's data array. |
2794 * Note that an IndexOutOfBoundsException can be thrown when an | 2794 * Note that an ArrayIndexOutOfBoundsException can be thrown when an |
2795 * attempt is made to add more than the original construction size | 2795 * attempt is made to add more than the original construction size |
2796 * specified. | 2796 * specified. |
2797 * | 2797 * |
2798 * @param line the header line as String | 2798 * @param line the header line as String |
2799 * @param linetype the line type according to the MAPI protocol | 2799 * @param linetype the line type according to the MAPI protocol |
3255 | 3255 |
3256 if (error != null) { | 3256 if (error != null) { |
3257 // right, some protocol violation, | 3257 // right, some protocol violation, |
3258 // skip the rest of the result | 3258 // skip the rest of the result |
3259 error = "M0M10!" + error; | 3259 error = "M0M10!" + error; |
3260 in.discardRemainder(); | 3260 in.discardRemainder(error); |
3261 break; | 3261 break; |
3262 } | 3262 } |
3263 | 3263 |
3264 // it is of no use to store DataBlockResponses, you never want to | 3264 // it is of no use to store DataBlockResponses, you never want to |
3265 // retrieve them directly anyway | 3265 // retrieve them directly anyway |