comparison src/main/java/org/monetdb/client/JdbcClient.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
106 * --help This help screen. 106 * --help This help screen.
107 * --version Display driver version and exit. 107 * --version Display driver version and exit.
108 * -e --echo Also outputs the contents of the input file, if any. 108 * -e --echo Also outputs the contents of the input file, if any.
109 * -q --quiet Suppress printing the welcome header. 109 * -q --quiet Suppress printing the welcome header.
110 * -D --dump Dumps the given table(s), or the complete database if none given. 110 * -D --dump Dumps the given table(s), or the complete database if none given.
111 * --csvdir The directory path where csv data files wil be read from or 111 * --csvdir The directory path where csv data files will be read from or
112 * written to when COPY ... ON CLIENT commands are executed. 112 * written to when COPY ... ON CLIENT commands are executed.
113 * -Xoutput The output mode when dumping. Default is sql, xml may be used for 113 * -Xoutput The output mode when dumping. Default is sql, xml may be used for
114 * an experimental XML output. 114 * an experimental XML output.
115 * -Xhash Use the given hash algorithm during challenge response. 115 * -Xhash Use the given hash algorithm during challenge response.
116 * Supported algorithm names: SHA512, SHA384, SHA256 and SHA1. 116 * Supported algorithm names: SHA512, SHA384, SHA256 and SHA1.
1070 * default output of a query: tabular data. 1070 * default output of a query: tabular data.
1071 * 1071 *
1072 * @param query the query to execute 1072 * @param query the query to execute
1073 * @param stmt the Statement to execute the query on 1073 * @param stmt the Statement to execute the query on
1074 * @param out the PrintWriter to write to 1074 * @param out the PrintWriter to write to
1075 * @param showTiming flag to specify if timing information nees to be printed 1075 * @param showTiming flag to specify if timing information needs to be printed
1076 * @throws SQLException if a database related error occurs 1076 * @throws SQLException if a database related error occurs
1077 */ 1077 */
1078 private static void executeQuery(final String query, 1078 private static void executeQuery(final String query,
1079 final Statement stmt, 1079 final Statement stmt,
1080 final PrintWriter out, 1080 final PrintWriter out,
1153 stmt.clearWarnings(); 1153 stmt.clearWarnings();
1154 1154
1155 // if there were warnings for this connection show them! 1155 // if there were warnings for this connection show them!
1156 warn = con.getWarnings(); 1156 warn = con.getWarnings();
1157 while (warn != null) { 1157 while (warn != null) {
1158 // suppress warning when issueing a "set schema xyz;" command 1158 // suppress warning when issuing a "set schema xyz;" command
1159 // if ( !(warn.getMessage()).equals("Server enabled auto commit mode while local state already was auto commit.") ) 1159 // if ( !(warn.getMessage()).equals("Server enabled auto commit mode while local state already was auto commit.") )
1160 System.err.println("Connection warning: " + warn.getMessage()); 1160 System.err.println("Connection warning: " + warn.getMessage());
1161 warn = warn.getNextWarning(); 1161 warn = warn.getNextWarning();
1162 } 1162 }
1163 con.clearWarnings(); 1163 con.clearWarnings();