Changeset 48 in tracdarcs for tracdarcs/repository.py


Ignore:
Timestamp:
12/03/06 06:36:03 (6 years ago)
Author:
John Goerzen <jgoerzen@…>
Hash name:
20061203053603-c2a52-c6f69fd19cffbb81e5630f24e6f87514f743e918
Message:

SQL compatibility fix: change GLOB to LIKE
Note that neither one is really correct. The former will fail on filenames
with asterisks and question marks in them; the new one, on filenames with
percent signs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tracdarcs/repository.py

    r40 r48  
    180180        for rev,path in c : 
    181181            c1.execute( 'SELECT node_id FROM darcs_node_changes ' 
    182                     'WHERE rev = %s AND path GLOB %s', 
    183                     (rev,path+'/*') ) 
     182                    'WHERE rev = %s AND path LIKE %s', 
     183                    (rev,path+'/%') ) 
    184184            for nid, in c1 : 
    185185                if nid not in node_set : 
Note: See TracChangeset for help on using the changeset viewer.