Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

use 'port' as keyword for pgdb #173

merged 1 commit into from Aug 17, 2012
Jump to file or symbol
Failed to load files and symbols.
+2 −0
@@ -926,6 +926,8 @@ def __init__(self, **keywords):
if db_module.__name__ == "psycopg2":
import psycopg2.extensions
+ if db_module.__name__ == "pgdb" and 'port' in keywords:
+ keywords["host"] += ":" + str(keywords.pop('port'))
# if db is not provided postgres driver will take it from PGDATABASE environment variable
if 'db' in keywords: