shuiyouren / sqlitepersistentobjects

Automatically exported from code.google.com/p/sqlitepersistentobjects
0 stars 0 forks source link

NSDate retreival issue + fix #13

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Greets,

Apps were dying on retrieval of objects with NSDate* fields.  Tracked down
the problem to the last line of NSDate-SQLitePersistence.m's 

+(id)objectWithSqlColumnRepresentation:(NSString*)columnData

which was:

  return [dateFormatter dateFromString:self];

but self isn't actually a string, at least in my proggy... the fix seems to be:

  return [dateFormatter dateFromString:columnData];

Regards,
Pat Deegan

Original issue reported on code.google.com by goo...@psychogenic.com on 5 Nov 2008 at 9:32

GoogleCodeExporter commented 8 years ago

Original comment by amle...@gmail.com on 17 Jan 2009 at 3:02