Mercurial > hg > monetdb-java
comparison src/main/java/nl/cwi/monetdb/jdbc/MonetResultSet.java @ 93:eeb71f7d36bf embedded
Fixed a bug on the JDBC MAPI connection from the old code! Fixed the connection properties for an JDBC Embedded connection. To start a JDBC Embedded connection, the user must start the embedded database beforehand with the method MonetDBEmbeddedDatabase.StartDatabase().
author | Pedro Ferreira <pedro.ferreira@monetdbsolutions.com> |
---|---|
date | Fri, 06 Jan 2017 12:36:33 +0000 (2017-01-06) |
parents | 6f74e01c57da |
children | c0ce1ea5075f |
comparison
equal
deleted
inserted
replaced
91:6f74e01c57da | 93:eeb71f7d36bf |
---|---|
3255 } | 3255 } |
3256 | 3256 |
3257 //== end methods of interface ResultSet | 3257 //== end methods of interface ResultSet |
3258 | 3258 |
3259 /** | 3259 /** |
3260 * Adds a warning to the pile of warnings this ResultSet object has. If | |
3261 * there were no warnings (or clearWarnings was called) this warning will | |
3262 * be the first, otherwise this warning will get appended to the current | |
3263 * warning. | |
3264 * | |
3265 * @param reason the warning message | |
3266 */ | |
3267 private void addWarning(String reason, String sqlstate) { | |
3268 if (warnings == null) { | |
3269 warnings = new SQLWarning(reason, sqlstate); | |
3270 } else { | |
3271 warnings.setNextWarning(new SQLWarning(reason, sqlstate)); | |
3272 } | |
3273 } | |
3274 | |
3275 /** | |
3276 * Small helper method that formats the "Invalid Column Index number ..." message | 3260 * Small helper method that formats the "Invalid Column Index number ..." message |
3277 * and creates a new SQLException object whose SQLState is set to "M1M05". | 3261 * and creates a new SQLException object whose SQLState is set to "M1M05". |
3278 * | 3262 * |
3279 * @param colIdx the column index number | 3263 * @param colIdx the column index number |
3280 * @return a new created SQLException object with SQLState M1M05 | 3264 * @return a new created SQLException object with SQLState M1M05 |