Ticket #14203: creation.py.patch

File creation.py.patch, 977 bytes (added by terpsquared, 14 years ago)

patch

Line 
1*** creation.py 2009-12-22 10:18:51.000000000 -0500
2--- creation.py 2010-08-31 15:12:34.000000000 -0400
3***************
4*** 51,57 ****
5
6 def get_index_sql(index_name, opclass=''):
7 return (style.SQL_KEYWORD('CREATE INDEX') + ' ' +
8! style.SQL_TABLE(qn(index_name)) + ' ' +
9 style.SQL_KEYWORD('ON') + ' ' +
10 style.SQL_TABLE(qn(db_table)) + ' ' +
11 "(%s%s)" % (style.SQL_FIELD(qn(f.column)), opclass) +
12--- 51,57 ----
13
14 def get_index_sql(index_name, opclass=''):
15 return (style.SQL_KEYWORD('CREATE INDEX') + ' ' +
16! style.SQL_TABLE(qn(index_name.replace('"', '').replace('.', '_'))) + ' ' +
17 style.SQL_KEYWORD('ON') + ' ' +
18 style.SQL_TABLE(qn(db_table)) + ' ' +
19 "(%s%s)" % (style.SQL_FIELD(qn(f.column)), opclass) +
Back to Top