aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/python/pgdb.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaces/python/pgdb.py')
-rw-r--r--src/interfaces/python/pgdb.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/interfaces/python/pgdb.py b/src/interfaces/python/pgdb.py
index f5859713f03..28eab3d4ada 100644
--- a/src/interfaces/python/pgdb.py
+++ b/src/interfaces/python/pgdb.py
@@ -120,6 +120,8 @@ class pgdbTypeCache:
pass
elif typ == BINARY:
pass
+ elif typ == BOOL:
+ value = (value[:1] in ['t','T'])
elif typ == INTEGER:
value = int(value)
elif typ == LONG:
@@ -322,7 +324,7 @@ def connect(dsn = None, user = None, password = None, host = None, database = No
try:
params = string.split(host, ":")
dbhost = params[0]
- dbport = params[1]
+ dbport = int(params[1])
except:
pass