with underscores for dots, i.e. "dbo_master_table_column".
This is a "friendly" label that behaves better
in result sets. [ticket:1428]
+
+ - removed needless "counter" behavior with select()
+ labelnames that match a column name in the table,
+ i.e. generates "tablename_id" for "id", instead of
+ "tablename_id_1" in an attempt to avoid naming
+ conflicts, when the table has a column actually
+ named "tablename_id" - this is because
+ the labeling logic is always applied to all columns
+ so a naming conflict will never occur.
- Deprecated or removed:
* "scalar" flag on select() is removed, use
label = _escape_for_generated(self.table.name) + "_" + \
_escape_for_generated(self.name)
- if label in self.table.c:
- # TODO: coverage does not seem to be present for this
- _label = label
- counter = 1
- while _label in self.table.c:
- _label = label + "_" + str(counter)
- counter += 1
- label = _label
return _generated_label(label)
else: