Edgewall Software

Ticket #4378: mysql_backend.path.binary.diff

File mysql_backend.path.binary.diff, 0.9 kB (added by jackie.m@…, 21 months ago)

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

  • mysql_backend.

    old new  
    7676        coldefs = [] 
    7777        for column in table.columns: 
    7878            ctype = column.type 
     79            print 'yo' 
    7980            if column.auto_increment: 
    8081                ctype = 'INT UNSIGNED NOT NULL AUTO_INCREMENT' 
    8182                # Override the column type, as a text field cannot 
    8283                # use auto_increment. 
    8384                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')) 
    8589        if len(table.key) > 0: 
    8690            coldefs.append('    PRIMARY KEY (%s)' % 
    8791                           self._collist(table, table.key))