summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/databases/postgres.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2008-01-05 22:59:18 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2008-01-05 22:59:18 +0000
commit8fe38c7e956675eb9b6c859848200d8dcc7a9589 (patch)
tree922a48aafb9fece7e9b4b9fde469d46c389d1692 /lib/sqlalchemy/databases/postgres.py
parent68a9e6cb1fc53d6a989fa3ef6febcbe7ee304ebd (diff)
downloadsqlalchemy-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.py4
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,
}