diff --git a/VERSION b/VERSION index 517dc99e..5d102d8f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.0.9 (2012-10-01 14:25:23) dev +Version 2.0.9 (2012-10-01 14:49:31) dev diff --git a/gluon/dal.py b/gluon/dal.py index fa15f65b..1a50c2d2 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -3261,6 +3261,12 @@ class FireBirdAdapter(BaseAdapter): def SUBSTRING(self,field,parameters): return 'SUBSTRING(%s from %s for %s)' % (self.expand(field), parameters[0], parameters[1]) + def CONTAINS(self, first, second): + if first.type.startswith('list:'): + key = '|'+str(second).replace('|','||').replace('%','%%')+'|' + return '(%s CONTAINING %s)' % (self.expand(first), + self.expand(key,'string')) + def _drop(self,table,mode): sequence_name = table._sequence_name return ['DROP TABLE %s %s;' % (table, mode), 'DROP GENERATOR %s;' % sequence_name]