summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Trofatter <bentrofatter@gmail.com>2012-10-31 17:14:07 -0500
committerBenjamin Trofatter <bentrofatter@gmail.com>2012-10-31 17:14:07 -0500
commitb6aa4643c5d78678dbda78e13f879debbb62e792 (patch)
treed3d3ff0ab4be12367d76490f77c25d98be8f7432
parent8fcd985e41fce74c26043985e497e6149f60b65b (diff)
downloadsqlalchemy-b6aa4643c5d78678dbda78e13f879debbb62e792.tar.gz
Updated sybase testing requirements
-rw-r--r--lib/sqlalchemy/dialects/sybase/base.py6
-rw-r--r--lib/sqlalchemy/engine/base.py2
-rw-r--r--test/requirements.py4
3 files changed, 7 insertions, 5 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
diff --git a/lib/sqlalchemy/engine/base.py b/lib/sqlalchemy/engine/base.py
index 797158b3b..ef362f7e2 100644
--- a/lib/sqlalchemy/engine/base.py
+++ b/lib/sqlalchemy/engine/base.py
@@ -1734,4 +1734,4 @@ class OptionEngine(Engine):
def _set_has_events(self, value):
self.__dict__['_has_events'] = value
- _has_events = property(_get_has_events, _set_has_events) \ No newline at end of file
+ _has_events = property(_get_has_events, _set_has_events)
diff --git a/test/requirements.py b/test/requirements.py
index 6e28aeac7..c8c9b0192 100644
--- a/test/requirements.py
+++ b/test/requirements.py
@@ -349,8 +349,8 @@ class DefaultRequirements(SuiteRequirements):
after an insert() construct executes.
"""
return fails_on_everything_except('mysql+mysqldb', 'mysql+oursql',
- 'sqlite+pysqlite', 'mysql+pymysql',
- 'mssql+pyodbc', 'mssql+mxodbc')
+ 'sqlite+pysqlite', 'mysql+pymysql',
+ 'sybase', 'mssql+pyodbc', 'mssql+mxodbc')
@property
def implements_get_lastrowid(self):