summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy
diff options
context:
space:
mode:
authorGaëtan de Menten <gdementen@gmail.com>2007-07-17 09:00:25 +0000
committerGaëtan de Menten <gdementen@gmail.com>2007-07-17 09:00:25 +0000
commit6506939352a2a52071bd56fcf5a8af243ec8e27b (patch)
tree86932d4ad4daf3eaadd21488b56656a202b00991 /lib/sqlalchemy
parenta3f25674fce8cd137dc4c1f113d5bbf25e28c7f2 (diff)
downloadsqlalchemy-6506939352a2a52071bd56fcf5a8af243ec8e27b.tar.gz
- fixed max identifier length on postgres (63) [ticket:571]
- fixed doc typo ("in_" operator) - misc indent stuff
Diffstat (limited to 'lib/sqlalchemy')
-rw-r--r--lib/sqlalchemy/databases/postgres.py2
-rw-r--r--lib/sqlalchemy/orm/properties.py2
-rw-r--r--lib/sqlalchemy/sql_util.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/sqlalchemy/databases/postgres.py b/lib/sqlalchemy/databases/postgres.py
index 068a4d0a1..d3726fc1f 100644
--- a/lib/sqlalchemy/databases/postgres.py
+++ b/lib/sqlalchemy/databases/postgres.py
@@ -275,7 +275,7 @@ class PGDialect(ansisql.ANSIDialect):
return PGExecutionContext(self, *args, **kwargs)
def max_identifier_length(self):
- return 68
+ return 63
def type_descriptor(self, typeobj):
if self.version == 2:
diff --git a/lib/sqlalchemy/orm/properties.py b/lib/sqlalchemy/orm/properties.py
index 6677e4ab9..a00a35ab6 100644
--- a/lib/sqlalchemy/orm/properties.py
+++ b/lib/sqlalchemy/orm/properties.py
@@ -91,7 +91,7 @@ class PropertyLoader(StrategizedProperty):
self.association = association
self.order_by = order_by
- self.attributeext=attributeext
+ self.attributeext = attributeext
if isinstance(backref, str):
# propigate explicitly sent primary/secondary join conditions to the BackRef object if
# just a string was sent
diff --git a/lib/sqlalchemy/sql_util.py b/lib/sqlalchemy/sql_util.py
index debf1da4f..9235b9c4e 100644
--- a/lib/sqlalchemy/sql_util.py
+++ b/lib/sqlalchemy/sql_util.py
@@ -53,7 +53,7 @@ class TableCollection(object):
for table in self.tables:
vis.traverse(table)
sorter = topological.QueueDependencySorter( tuples, self.tables )
- head = sorter.sort()
+ head = sorter.sort()
sequence = []
def to_sequence( node, seq=sequence):
seq.append( node.item )