Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"database" : "sample",
"user" : "db2inst1",
"password" : "password",
"password" : "",
"hostname" : "localhost",
"port" : 50000
}
4 changes: 2 additions & 2 deletions ibm_db.c
Original file line number Diff line number Diff line change
Expand Up @@ -1860,8 +1860,8 @@ static PyObject *_python_ibm_db_connect_helper( PyObject *self, PyObject *args,
/* Set Options */
if ( !NIL_P(options) ) {
if(!PyDict_Check(options)) {
LogMsg(EXCEPTION, "options Parameter must be of type dictionay", fileName);
PyErr_SetString(PyExc_Exception, "options Parameter must be of type dictionay");
LogMsg(EXCEPTION, "options Parameter must be of type dictionary", fileName);
PyErr_SetString(PyExc_Exception, "options Parameter must be of type dictionary");
return NULL;
}
rc = _python_ibm_db_parse_options( options, SQL_HANDLE_DBC, conn_res );
Expand Down
2 changes: 1 addition & 1 deletion ibm_db_dbi.py
Original file line number Diff line number Diff line change
Expand Up @@ -1751,7 +1751,7 @@ def executemany(self, operation, seq_parameters):
self.messages.append(Error(str(ibm_db.conn_errormsg())))
raise self.messages[len(self.messages) - 1]
if ibm_db.stmt_errormsg() is not None:
error_msg = f"Statement error: {str(ibm_db.conn_errormsg())}"
error_msg = f"Statement error: {str(ibm_db.stmt_errormsg())}"
LogMsg(ERROR, error_msg)
self.messages.append(Error(str(ibm_db.stmt_errormsg())))
raise self.messages[len(self.messages) - 1]
Expand Down
5 changes: 1 addition & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,10 +258,7 @@ def _downloadClidriver(url):
shutil.copy('ibm_db.dll', 'clidriver')

def print_exception( e, url):
if(os_ == "win"):
err = "Error while downloading clidriver from the following URL : " + url + "\n" + str(e)
else:
err = "Error while downloading clidriver from the following URL : " + url + "\n" + str(e)
err = "Error while downloading clidriver from the following URL : " + url + "\n" + str(e)

if "github" in url:
if(os_ == "win"):
Expand Down