mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-05-29 20:14:55 -04:00
Updated sybase testing requirements
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
_has_events = property(_get_has_events, _set_has_events)
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user