From 93c706a03bc809e21208cb6e9f76b23ed6d2ff19 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sun, 6 Jul 2008 00:47:56 +0000 Subject: - re-fixed the fix to the prefixes fix - removed ancient descriptor() functions from dialects; replaced with Dialect.name - removed similarly ancient sys.modules silliness in Engine.name --- lib/sqlalchemy/databases/postgres.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'lib/sqlalchemy/databases/postgres.py') diff --git a/lib/sqlalchemy/databases/postgres.py b/lib/sqlalchemy/databases/postgres.py index 944d8c3aa..6e77f02d8 100644 --- a/lib/sqlalchemy/databases/postgres.py +++ b/lib/sqlalchemy/databases/postgres.py @@ -225,16 +225,6 @@ ischema_names = { 'interval':PGInterval, } -def descriptor(): - return {'name':'postgres', - 'description':'PostGres', - 'arguments':[ - ('username',"Database Username",None), - ('password',"Database Password",None), - ('database',"Database Name",None), - ('host',"Hostname", None), - ]} - SERVER_SIDE_CURSOR_RE = re.compile( r'\s*SELECT', re.I | re.UNICODE) @@ -316,6 +306,7 @@ class PGExecutionContext(default.DefaultExecutionContext): super(PGExecutionContext, self).post_exec() class PGDialect(default.DefaultDialect): + name = 'postgres' supports_alter = True supports_unicode_statements = False max_identifier_length = 63 -- cgit v1.2.1