{"action":"created","issue":{"url":"https://api.github.com/repos/ibmdb/python-ibmdb/issues/341","repository_url":"https://api.github.com/repos/ibmdb/python-ibmdb","labels_url":"https://api.github.com/repos/ibmdb/python-ibmdb/issues/341/labels{/name}","comments_url":"https://api.github.com/repos/ibmdb/python-ibmdb/issues/341/comments","events_url":"https://api.github.com/repos/ibmdb/python-ibmdb/issues/341/events","html_url":"https://github.com/ibmdb/python-ibmdb/issues/341","id":360109775,"node_id":"MDU6SXNzdWUzNjAxMDk3NzU=","number":341,"title":"callproc sometimes returns a DBStatement object not a tuple as documented","user":{"login":"dongryphon","id":722969,"node_id":"MDQ6VXNlcjcyMjk2OQ==","avatar_url":"https://avatars2.githubusercontent.com/u/722969?v=4","gravatar_id":"","url":"https://api.github.com/users/dongryphon","html_url":"https://github.com/dongryphon","followers_url":"https://api.github.com/users/dongryphon/followers","following_url":"https://api.github.com/users/dongryphon/following{/other_user}","gists_url":"https://api.github.com/users/dongryphon/gists{/gist_id}","starred_url":"https://api.github.com/users/dongryphon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dongryphon/subscriptions","organizations_url":"https://api.github.com/users/dongryphon/orgs","repos_url":"https://api.github.com/users/dongryphon/repos","events_url":"https://api.github.com/users/dongryphon/events{/privacy}","received_events_url":"https://api.github.com/users/dongryphon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-09-14T00:06:15Z","updated_at":"2018-09-21T23:08:59Z","closed_at":null,"author_association":"NONE","body":"This [branch](https://github.com/ibmdb/python-ibmdb/blob/master/IBM_DB/ibm_db/ibm_db.c#L10710) returns a tuple if true but a Statement if false:\r\n\r\n    if(numOfParam != 0 && tmp_curr != NULL) {\r\n        int paramCount = 1;\r\n        outTuple = PyTuple_New(numOfParam + 1);\r\n        ...\r\n    } else {\r\n        outTuple = (PyObject *)stmt_res;\r\n    }\r\n\r\nAlso, whatever tabsize you are using makes the code unreadable in GitHub viewer :o"},"comment":{"url":"https://api.github.com/repos/ibmdb/python-ibmdb/issues/comments/423693657","html_url":"https://github.com/ibmdb/python-ibmdb/issues/341#issuecomment-423693657","issue_url":"https://api.github.com/repos/ibmdb/python-ibmdb/issues/341","id":423693657,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMzY5MzY1Nw==","user":{"login":"kadler","id":7004340,"node_id":"MDQ6VXNlcjcwMDQzNDA=","avatar_url":"https://avatars1.githubusercontent.com/u/7004340?v=4","gravatar_id":"","url":"https://api.github.com/users/kadler","html_url":"https://github.com/kadler","followers_url":"https://api.github.com/users/kadler/followers","following_url":"https://api.github.com/users/kadler/following{/other_user}","gists_url":"https://api.github.com/users/kadler/gists{/gist_id}","starred_url":"https://api.github.com/users/kadler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kadler/subscriptions","organizations_url":"https://api.github.com/users/kadler/orgs","repos_url":"https://api.github.com/users/kadler/repos","events_url":"https://api.github.com/users/kadler/events{/privacy}","received_events_url":"https://api.github.com/users/kadler/received_events","type":"User","site_admin":false},"created_at":"2018-09-21T23:08:59Z","updated_at":"2018-09-21T23:08:59Z","author_association":"COLLABORATOR","body":"@SabaKauser as far as the white-space issues go, I have removed all tabs from the code in #315. The code could use a lot more cleanup than that, but it is certainly better than what we have currently. I just rebased the PR so it can now be applied cleanly."}}
{"actor":{"display_login":"kadler"}}