puiterwijk / ipsilon

Forked from ipsilon 8 years ago
Clone

c736c0f Fix cleanup type issues with non-sqlite backends

Authored and Committed by puiterwijk 7 years ago
    Fix cleanup type issues with non-sqlite backends
    
    We store the data as strings, so when telling SQL to compare, we should be
    sending strings to compare against.
    SQLite does not actually check types, so doesn't throw this error, but for
    example in Postgres, the following error is being recorded:
    ProgrammingError: (psycopg2.ProgrammingError) operator does not exist: text <= timestamp without time zone
    
    Merges: #120
    Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
    Reviewed-by: Pierre-Yves Chibon <pingou@pingoured.fr>
    Reviewed-by: Howard Johnson <merlin@merlinthp.org>
    
        
file modified
+2 -2
file modified
+1 -1