diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2005-12-31 03:22:45 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2005-12-31 03:22:45 +0000 |
| commit | b3ce4c409a466260c9974d21a4bbd5d45156439d (patch) | |
| tree | d2dd84b89fe0ee56593f6e28a481466b54206884 /lib | |
| parent | f74910fbd6f5f6ab611eca715c9773a0f4174012 (diff) | |
| download | sqlalchemy-b3ce4c409a466260c9974d21a4bbd5d45156439d.tar.gz | |
datetime introspection adjustment
license switch
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/sqlalchemy/databases/postgres.py | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/lib/sqlalchemy/databases/postgres.py b/lib/sqlalchemy/databases/postgres.py index 0ec84dec4..0e9328a20 100644 --- a/lib/sqlalchemy/databases/postgres.py +++ b/lib/sqlalchemy/databases/postgres.py @@ -1,19 +1,8 @@ # postgres.py # Copyright (C) 2005 Michael Bayer mike_mp@zzzcomputing.com # -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# This module is part of SQLAlchemy and is released under +# the MIT License: http://www.opensource.org/licenses/mit-license.php import sys, StringIO, string, types, re @@ -94,13 +83,14 @@ pg2_ischema_names = { 'float' : PGFloat, 'real' : PGFloat, 'double precision' : PGFloat, + 'timestamp with time zone' : PG2DateTime, 'timestamp without time zone' : PG2DateTime, 'bytea' : PGBinary, 'boolean' : PGBoolean, } pg1_ischema_names = pg2_ischema_names.copy() -pg1_ischema_names['timestamp without time zone'] = PG1DateTime - +pg1_ischema_names['timestamp with time zone'] = \ + pg1_ischema_names['timestamp without time zone'] = PG1DateTime def engine(opts, **params): return PGSQLEngine(opts, **params) @@ -247,4 +237,4 @@ class PGDefaultRunner(ansisql.ANSIDefaultRunner): c = self.proxy("select nextval('%s')" % seq.name) return c.fetchone()[0] else: - return None
\ No newline at end of file + return None |
