diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-01-05 22:59:18 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-01-05 22:59:18 +0000 |
commit | 8fe38c7e956675eb9b6c859848200d8dcc7a9589 (patch) | |
tree | 922a48aafb9fece7e9b4b9fde469d46c389d1692 /lib/sqlalchemy/databases/postgres.py | |
parent | 68a9e6cb1fc53d6a989fa3ef6febcbe7ee304ebd (diff) | |
download | sqlalchemy-8fe38c7e956675eb9b6c859848200d8dcc7a9589.tar.gz |
- changed name of TEXT to Text since its a "generic" type; TEXT name is
deprecated until 0.5. The "upgrading" behavior of String to Text
when no length is present is also deprecated until 0.5; will issue a
warning when used for CREATE TABLE statements (String with no length
for SQL expression purposes is still fine) [ticket:912]
Diffstat (limited to 'lib/sqlalchemy/databases/postgres.py')
-rw-r--r-- | lib/sqlalchemy/databases/postgres.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/databases/postgres.py b/lib/sqlalchemy/databases/postgres.py index 01b1b10d3..eacd0c7e1 100644 --- a/lib/sqlalchemy/databases/postgres.py +++ b/lib/sqlalchemy/databases/postgres.py @@ -89,7 +89,7 @@ class PGInterval(sqltypes.TypeEngine): def get_col_spec(self): return "INTERVAL" -class PGText(sqltypes.TEXT): +class PGText(sqltypes.Text): def get_col_spec(self): return "TEXT" @@ -166,7 +166,7 @@ colspecs = { sqltypes.String : PGString, sqltypes.Binary : PGBinary, sqltypes.Boolean : PGBoolean, - sqltypes.TEXT : PGText, + sqltypes.Text : PGText, sqltypes.CHAR: PGChar, } |