Donate Share

PDO: Python Database Objects

Tracker: Patches

5 Patch for Bug: 1654768 (Unable to specify 'port' ...) - ID: 1654770
Last Update: Comment added ( sf-robot )

Bug Link:
http://sourceforge.net/tracker/index.php?func=detail&aid=1654768&group_id=8
6244&atid=578926

The patch to this problem is as follows:
After line 83 in the 'connect' code, add:
# special case of b is a 'port'
if string.lower(b[0]) == 'port':
b[1] = int(b[1])

The new code will read:
.
.
.
else:
if len(b) < 2:
b.append("") # empty value
# special case of b is a 'port'
if string.lower(b[0]) == 'port':
b[1] = int(b[1])
self.__connection_vars[string.lower(b[0])]=b[1]

.
.
.

Although the formatting will be broken by this post, you get the ID.

No exception handling is done here and that's intentional. A connection
error can be raised if the int(b[1]) operation fails, but I'll leave that
up to the neurokode guys.

-Nate


Nate Reid ( gnatty ) - 2007-02-08 02:48

5

Closed

None

Bryan J Gudorf

None

None

Public


Comments ( 2 )




Date: 2007-08-23 02:20
Sender: sf-robotSourceForge.net Site Admin


This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).


Date: 2007-08-08 12:09
Sender: brujahpriestProject AdminAccepting Donations


Thank you for the submission, this will be in the next point release of
PDO.


Log in to comment.

Attached File

No Files Currently Attached

Changes ( 5 )

Field Old Value Date By
status_id Pending 2007-08-23 02:20 sf-robot
close_date 2007-08-08 12:09 2007-08-23 02:20 sf-robot
status_id Open 2007-08-08 12:09 brujahpriest
assigned_to nobody 2007-08-08 12:09 brujahpriest
close_date - 2007-08-08 12:09 brujahpriest