Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Sources/StORM/StORM.swift
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,12 @@ open class StORM {
switch theType {
case is Int.Type, is Int?.Type:
return (val as! Int == 0)
case is Int16.Type, is Int16?.Type:
return (val as! Int16 == 0)
case is Int32.Type, is Int32?.Type:
return (val as! Int32 == 0)
case is Int64.Type, is Int64?.Type:
return (val as! Int64 == 0)
case is String.Type, is String?.Type:
return (val as! String).isEmpty
default:
Expand Down