Open GoogleCodeExporter opened 9 years ago
Note that the diff has to be applied on top of the one in issue 103. And it
breaks backward compatibility :)
Original comment by sok...@gmail.com
on 2 May 2012 at 1:50
Why you think that "return ((dsn, conn_args['username'],'','',''), {'xxx':
'yyy'})" statement will not work with ibm_db_dbi, in this statement also you
are passing a dictionary "{'xxx': 'yyy'}" in sixth argument.
Original comment by rahul.pr...@in.ibm.com
on 8 May 2012 at 9:38
The following shall illustrate why...
def func1(arg1, arg2, params):
print 'func1 called with', arg1, arg2, params
def func2(arg1, arg2, **kwargs):
print 'func2 called with', arg1, arg2, kwargs
list_params = ('a', 'b')
dict_params = {'c': 123}
try:
func1(*list_params, **dict_params)
except:
assert True
func2(*list_params, **dict_params)
Original comment by sok...@gmail.com
on 8 May 2012 at 12:07
Could you please provide me the error message which you are getting while
passing the argument through SQLAlchemny.
Original comment by rahul.pr...@in.ibm.com
on 16 May 2012 at 12:31
In ibm_db_sa/ibm_db.py, put something into the dictionary in either this line:
return ((dsn, uid, pwd,'',''), {})
or this line:
return ((dsn, conn_args['username'],'','',''), {})
For example:
return ((dsn, conn_args['username'],'','',''), {'abc': 123})
Then, create an engine and connect:
>>> from sqlalchemy.engine import create_engine
>>> engine = create_engine('ibm_db_sa://user:password@localhost:1234/test')
>>> engine.connect()
This will raise error "DBAPIError: (TypeError) connect() got an unexpected
keyword argument 'abc' None None"
Original comment by sok...@gmail.com
on 16 May 2012 at 12:46
Original issue reported on code.google.com by
sok...@gmail.com
on 2 May 2012 at 1:43Attachments: