Menu

#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

    Logged In: YES
    user_id=414645
    Originator: NO

    Addressing the problems discussed in this thread
    http://sourceforge.net/forum/forum.php?thread_id=1695175&forum_id=30917
    fixed this bug as a side effect. I have applied the fixes to both the 3.2 and 3.3 branches.

     
  • 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.

MongoDB Logo MongoDB