diff options
Diffstat (limited to 'lib/sqlalchemy/engine/base.py')
-rw-r--r-- | lib/sqlalchemy/engine/base.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/sqlalchemy/engine/base.py b/lib/sqlalchemy/engine/base.py index 77ab866c7..c7b5d93fe 100644 --- a/lib/sqlalchemy/engine/base.py +++ b/lib/sqlalchemy/engine/base.py @@ -52,8 +52,13 @@ class Dialect(sql.AbstractDialect): which comes from the types module. Subclasses will usually use the adapt_type() method in the types module to make this job easy.""" raise NotImplementedError() - def oid_column_name(self): - """returns the oid column name for this dialect, or None if the dialect cant/wont support OID/ROWID.""" + def oid_column_name(self, column): + """return the oid column name for this dialect, or None if the dialect cant/wont support OID/ROWID. + + the Column instance which represents OID for the query being compiled is passed, so that the dialect + can inspect the column and its parent selectable to determine if OID/ROWID is not selected for a particular + selectable (i.e. oracle doesnt support ROWID for UNION, GROUP BY, DISTINCT, etc.) + """ raise NotImplementedError() def supports_sane_rowcount(self): """Provided to indicate when MySQL is being used, which does not have standard behavior |