Project

General

Profile

« Previous | Next » 

Revision 6299

sql_gen.py: Cast: Support casts to unknown by casting to text first

View differences:

sql_gen.py
774 774
        type_ = as_Code(type_)
775 775
        value = as_Value(value)
776 776
        
777
        # Most types cannot be cast directly to unknown
778
        if type_.to_str(mockDb) == 'unknown': value = Cast('text', value)
779
        
777 780
        self.type_ = type_
778 781
        self.value = value
779 782
    

Also available in: Unified diff