Another date fix

This commit is contained in:
Stash Dev 2019-03-07 12:19:19 -08:00
parent 1a2c53a710
commit f57c2bff1d

View file

@ -205,6 +205,10 @@ func SQLGenKeys(i interface{}) string {
if !t.Timestamp.IsZero() { if !t.Timestamp.IsZero() {
query = append(query, fmt.Sprintf("%s=:%s", key, key)) query = append(query, fmt.Sprintf("%s=:%s", key, key))
} }
case SQLiteDate:
if t.Valid {
query = append(query, fmt.Sprintf("%s=:%s", key, key))
}
case sql.NullString: case sql.NullString:
if t.Valid { if t.Valid {
query = append(query, fmt.Sprintf("%s=:%s", key, key)) query = append(query, fmt.Sprintf("%s=:%s", key, key))