Ticket #4676: sql.diff
File sql.diff, 728 bytes (added by , 17 years ago) |
---|
-
base.py
87 87 return name # Quoting once is enough. 88 88 return '"%s"' % name 89 89 90 def unquote_name(name): 91 return name.strip('"') 92 90 93 dictfetchone = util.dictfetchone 91 94 dictfetchmany = util.dictfetchmany 92 95 dictfetchall = util.dictfetchall … … 121 124 return " DEFERRABLE INITIALLY DEFERRED" 122 125 123 126 def get_fulltext_search_sql(field_name): 124 raise NotImplementedError 127 requoted_field_name = quote_name("%s_tsv" %(unquote_name(field_name))) 128 return "%s @@ to_tsquery(%%s)" % requoted_field_name 125 129 126 130 def get_drop_foreignkey_sql(): 127 131 return "DROP CONSTRAINT"