Ticket #3254: fts-pstgres-oracle-mssql-corrected.patch
File fts-pstgres-oracle-mssql-corrected.patch, 1.8 KB (added by , 17 years ago) |
---|
-
django/db/backends/ado_mssql/base.py
126 126 return "RAND()" 127 127 128 128 def get_fulltext_search_sql(field_name): 129 r aise NotImplementedError129 return "CONTAINS(%s, %ss)" % field_name 130 130 131 131 def get_drop_foreignkey_sql(): 132 132 return "DROP CONSTRAINT" -
django/db/backends/sqlite3/base.py
140 140 return "RANDOM()" 141 141 142 142 def get_fulltext_search_sql(field_name): 143 raise NotImplementedError 144 143 return "%s match %s" % field_name 145 144 def get_drop_foreignkey_sql(): 146 145 return "" 147 146 -
django/db/backends/oracle/base.py
109 109 return "DBMS_RANDOM.RANDOM" 110 110 111 111 def get_fulltext_search_sql(field_name): 112 r aise NotImplementedError112 return "CONTAINS(%s, %ss)" % field_name 113 113 114 114 def get_drop_foreignkey_sql(): 115 115 return "DROP FOREIGN KEY" -
django/db/backends/postgresql_psycopg2/base.py
97 97 return "RANDOM()" 98 98 99 99 def get_fulltext_search_sql(field_name): 100 r aise NotImplementedError100 return "%s_tsv @@ to_tsquery(%%s)"%field_name 101 101 102 102 def get_drop_foreignkey_sql(): 103 103 return "DROP CONSTRAINT"