Ticket #4378: mysql_backend.path.binary.diff
| File mysql_backend.path.binary.diff, 0.9 kB (added by jackie.m@…, 21 months ago) |
|---|
-
mysql_backend.
old new 76 76 coldefs = [] 77 77 for column in table.columns: 78 78 ctype = column.type 79 print 'yo' 79 80 if column.auto_increment: 80 81 ctype = 'INT UNSIGNED NOT NULL AUTO_INCREMENT' 81 82 # Override the column type, as a text field cannot 82 83 # use auto_increment. 83 84 column.type = 'int' 84 coldefs.append(' `%s` %s' % (column.name, ctype)) 85 if column.name != 'path': 86 coldefs.append(' `%s` %s' % (column.name, ctype)) 87 else: 88 coldefs.append(' `%s` %s %s' % (column.name, ctype ,'BINARY')) 85 89 if len(table.key) > 0: 86 90 coldefs.append(' PRIMARY KEY (%s)' % 87 91 self._collist(table, table.key))
