#71 event_conduit() chokes on unicode connection parameter

open-fixed
None
5
2007-04-05
2007-03-08
Harm
No

If the string parameters to kinterbasdb.connect() are in unicode this will trigger an internal error when adding eventlisteners.

The error is triggered in _kievents.c in the validation starting on line 164

Tested with kinterbasdb-3.2.win32-FB-1.5-py2.5.exe

##

import kinterbasdb

connection = kinterbasdb.connect(dsn=u'127.0.0.1:C:\\test.db')
conduit = connection.event_conduit(['1'])

##

Traceback (most recent call last):
File "testcase.py", line 4, in <module>
conduit = connection.event_conduit(['1'])
File "C:\Progra~1\python25\lib\site-packages\kinterbasdb\__init__.py", line 11
26, in event_conduit
event_names
kinterbasdb.InternalError: (0, 'py_con_params is invalid.')

Discussion

  • David S. Rushby

    David S. Rushby - 2007-04-05
    • status: open --> open-fixed
     
  • David S. Rushby

    David S. Rushby - 2007-04-05
    • assigned_to: nobody --> woodsplitter
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks