uri='informi-se://...
This commit is contained in:
2
VERSION
2
VERSION
@@ -1 +1 @@
|
||||
Version 2.2.1 (2012-12-04 08:31:43) stable
|
||||
Version 2.2.1 (2012-12-04 08:47:43) stable
|
||||
|
||||
14
gluon/dal.py
14
gluon/dal.py
@@ -26,7 +26,7 @@ including:
|
||||
- DB2
|
||||
- Interbase
|
||||
- Ingres
|
||||
- Informix
|
||||
- Informix (9+ and SE)
|
||||
- SapDB (experimental)
|
||||
- Cubrid (experimental)
|
||||
- CouchDB (experimental)
|
||||
@@ -3534,6 +3534,17 @@ class InformixAdapter(BaseAdapter):
|
||||
def integrity_error_class(self):
|
||||
return informixdb.IntegrityError
|
||||
|
||||
class InformixSEAdapter(InformixAdapter):
|
||||
""" work in progress """
|
||||
|
||||
def select_limitby(self, sql_s, sql_f, sql_t, sql_w, sql_o, limitby):
|
||||
return 'SELECT %s %s FROM %s%s%s;' % \
|
||||
(sql_s, sql_f, sql_t, sql_w, sql_o)
|
||||
|
||||
def rowslice(self,rows,minimum=0,maximum=None):
|
||||
if maximum is None:
|
||||
return rows[minimum:]
|
||||
return rows[minimum:maximum]
|
||||
|
||||
class DB2Adapter(BaseAdapter):
|
||||
drivers = ('pyodbc',)
|
||||
@@ -6267,6 +6278,7 @@ ADAPTERS = {
|
||||
'db2': DB2Adapter,
|
||||
'teradata': TeradataAdapter,
|
||||
'informix': InformixAdapter,
|
||||
'informix-se': InformixSEAdapter,
|
||||
'firebird': FireBirdAdapter,
|
||||
'firebird_embedded': FireBirdAdapter,
|
||||
'ingres': IngresAdapter,
|
||||
|
||||
Reference in New Issue
Block a user