Share

Simple MS SQL Python extension module

Tracker: Bugs

5 Methods called on self.__source that don't exist - ID: 1623969
Last Update: Settings changed ( akukula )

The pymssqlCnx class is returned to the pymssqlCursor class when it is
created, and stored in self.__source. Later in the code, there are calls to
self.__source.query(sql), but the pymssqlCnx class doesn't have a query
method. Nor does it have an errmsg() method. Those are on the lower-level
_mssql connection object, which is stored in the pymssqlCnx.__cnx object. I
don't understand how they ever worked at all for you.

I have added pass-through methods that take care of this. The modified file
is attached; the mods are all together beginning on line 290, and are
clearly labeled.


Ed Leafe ( msborg ) - 2006-12-29 01:06

5

Closed

None

Nobody/Anonymous

None

None

Public


Comments ( 2 )




Date: 2007-01-09 02:16
Sender: msborgAccepting Donations


OK, I was wrong about the retraction. I had an old .pyc file from my
changed version in site-packages, which is why it was working for me. I
deleted both the existing .py and .pyc, re-installed a fresh copy from you,
and it is now throwing the same error again.

Please let me know if you can reproduce the problem.


Date: 2006-12-29 16:46
Sender: msborgAccepting Donations


Now that's really odd. I used the downloaded Win32 installer to test on a
WinXP client, and it worked without any modifications. So I re-installed on
my Mac, and it worked there, too.

I don't know why I kept getting the error message that:
self._pymssqlCnx__source doesn't have a method 'query', but for some reason
it is working correctly now. So please disregard this bug report.


Log in to comment.

Attached File ( 1 )

Filename Description Download
pymssql.py Modified version of pymssql.py Download

Changes ( 3 )

Field Old Value Date By
close_date - 2008-05-09 01:05 akukula
status_id Open 2008-05-09 01:05 akukula
File Added 208890: pymssql.py 2006-12-29 01:06 msborg