Ben Trofatter avatar Ben Trofatter committed be97b74 Draft

Updated sybase testing requirements

Comments (0)

Files changed (3)


     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
         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


     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)


         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')
     def implements_get_lastrowid(self):
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.