Contact: fumanchu@aminus.org

Log in as guest/dejavu to create tickets

I think I've seen this ORM somewhere before...

Changeset 322

Show
Ignore:
Timestamp:
10/23/06 21:10:54
Author:
fumanchu
Message:

Bah. I forgot that like_escapes need to be in the right order. Some typos fixed too.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/storage/storeado.py

    r321 r322  
    627627     
    628628    escapes = [("'", "''")] 
    629     like_escapes = [("%", "[%]"), ("_", "[_]"), ("[", "[[]"), 
     629    like_escapes = [("[", "[[]"), ("%", "[%]"), ("_", "[_]"), 
    630630                    ("?", "[?]"), ("#", "[#]")] 
    631631     
     
    714714            default = column.default or "" 
    715715            if default: 
    716                 default = self.adaptertosql.coerce(default, dbtype) 
     716                default = t.db.adaptertosql.coerce(default, dbtype) 
    717717                dbtype = "%s DEFAULT %s" % (dbtype, default) 
    718718         
     
    932932     
    933933    escapes = [("'", "''")] 
    934     like_escapes = [("%", "[%]"), ("_", "[_]"), ("[", "[[]"), 
     934    like_escapes = [("[", "[[]"), ("%", "[%]"), ("_", "[_]"), 
    935935                    ("?", "[?]"), ("#", "[#]")] 
    936936     
  • trunk/storage/storemysql.py

    r321 r322  
    166166            default = column.default or "" 
    167167            if default: 
    168                 default = self.adaptertosql.coerce(default, dbtype) 
     168                default = t.db.adaptertosql.coerce(default, dbtype) 
    169169                dbtype = "%s DEFAULT %s" % (dbtype, default) 
    170170