support for Oracle REGEXP_LIKE, thanks Alexander Rasin
This commit is contained in:
@@ -1 +1 @@
|
||||
Version 2.9.5-trunk+timestamp.2014.07.27.11.14.45
|
||||
Version 2.9.5-trunk+timestamp.2014.07.28.00.20.49
|
||||
|
||||
@@ -3192,6 +3192,10 @@ class OracleAdapter(BaseAdapter):
|
||||
def NOT_NULL(self, default, field_type):
|
||||
return 'DEFAULT %s NOT NULL' % self.represent(default, field_type)
|
||||
|
||||
def REGEXP(self, first, second):
|
||||
return 'REGEXP_LIKE(%s, %s)' % (self.expand(first),
|
||||
self.expand(second, 'string'))
|
||||
|
||||
def _drop(self, table, mode):
|
||||
sequence_name = table._sequence_name
|
||||
return ['DROP TABLE %s %s;' % (table.sqlsafe, mode), 'DROP SEQUENCE %s;' % sequence_name]
|
||||
|
||||
Reference in New Issue
Block a user