Explorar el Código

Values of type Double are now saved.

Iñigo Valentin hace 9 años
padre
commit
6115baa401
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      app/Sync.swift

+ 3 - 0
app/Sync.swift

@@ -226,6 +226,9 @@ class Sync{
 					else if entity?.attributesByName[column]?.attributeType == .integer16AttributeType || entity?.attributesByName[column]?.attributeType == .integer32AttributeType || entity?.attributesByName[column]?.attributeType == .integer64AttributeType{
 						query.setValue(Int(value), forKey: column)
 					}
+					else if entity?.attributesByName[column]?.attributeType == .doubleAttributeType{
+						query.setValue(Double(value), forKey: column)
+					}
 					else if entity?.attributesByName[column]?.attributeType == .booleanAttributeType{
 						if Int(value) == 1{
 							query.setValue(true, forKey: column)