diff options
| author | Benjamin Trofatter <bentrofatter@gmail.com> | 2012-10-31 17:14:07 -0500 |
|---|---|---|
| committer | Benjamin Trofatter <bentrofatter@gmail.com> | 2012-10-31 17:14:07 -0500 |
| commit | b6aa4643c5d78678dbda78e13f879debbb62e792 (patch) | |
| tree | d3d3ff0ab4be12367d76490f77c25d98be8f7432 /lib/sqlalchemy/dialects/sybase/base.py | |
| parent | 8fcd985e41fce74c26043985e497e6149f60b65b (diff) | |
| download | sqlalchemy-b6aa4643c5d78678dbda78e13f879debbb62e792.tar.gz | |
Updated sybase testing requirements
Diffstat (limited to 'lib/sqlalchemy/dialects/sybase/base.py')
| -rw-r--r-- | lib/sqlalchemy/dialects/sybase/base.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/sqlalchemy/dialects/sybase/base.py b/lib/sqlalchemy/dialects/sybase/base.py index c858d012b..b942f8e94 100644 --- a/lib/sqlalchemy/dialects/sybase/base.py +++ b/lib/sqlalchemy/dialects/sybase/base.py @@ -17,8 +17,7 @@ The Sybase dialect functions on current SQLAlchemy versions but is not regularly tested, and may have many issues and - caveats not currently handled. In particular, the table - and database reflection features are not implemented. + caveats not currently handled. """ import operator @@ -342,6 +341,9 @@ class SybaseSQLCompiler(compiler.SQLCompiler): return 'DATEPART("%s", %s)' % ( field, self.process(extract.expr, **kw)) + def visit_now_func(self, fn, **kw): + return "GETDATE()" + def for_update_clause(self, select): # "FOR UPDATE" is only allowed on "DECLARE CURSOR" # which SQLAlchemy doesn't use |
