Executes a query using JDBC
(query, query_config)
| 184 | |
| 185 | |
| 186 | def execute_using_jdbc(query, query_config): |
| 187 | """Executes a query using JDBC""" |
| 188 | query_string = query.query_str + ';' |
| 189 | if query.db: |
| 190 | query_string = 'use %s; %s' % (query.db, query_string) |
| 191 | cmd = query_config.jdbc_client_cmd + " -q \"%s\"" % query_string |
| 192 | return run_query_capture_results(cmd, query) |
| 193 | |
| 194 | |
| 195 | def parse_jdbc_query_results(stdout, query): |