Edgewall Software

Ticket #4378: mysql_backend.path.binary.2.diff

File mysql_backend.path.binary.2.diff, 0.7 kB (added by jackie.m@…, 22 months ago)

changes mysql_backend.py to use binary to store the path in node_change

  • mysql_backend.

    old new  
    8181                # Override the column type, as a text field cannot 
    8282                # use auto_increment. 
    8383                column.type = 'int' 
    84             coldefs.append('    `%s` %s' % (column.name, ctype)) 
     84            if column.name != 'path': 
     85                coldefs.append('    `%s` %s' % (column.name, ctype)) 
     86            else: 
     87                coldefs.append('    `%s` %s %s' % (column.name, ctype ,'BINARY')) 
    8588        if len(table.key) > 0: 
    8689            coldefs.append('    PRIMARY KEY (%s)' % 
    8790                           self._collist(table, table.key))