diff --git a/ChangeLog b/ChangeLog index 16b9fbc..6a41fc9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,9 @@ * EOAccess/EORelationship.h/m: Remove setCreateMutableObjects: and createsMutableObjects. + * EOAdaptors/SQLiteAdaptor/SQLiteChannel.m: Handle a null number + value as the string "0". + 2008-03-06 David Ayers * EOControl/EOFault.m ([-forward::]): Make dummy implementation. diff --git a/EOAdaptors/SQLiteAdaptor/SQLite3Channel.m b/EOAdaptors/SQLiteAdaptor/SQLite3Channel.m index 6152153..7d3072c 100644 --- a/EOAdaptors/SQLiteAdaptor/SQLite3Channel.m +++ b/EOAdaptors/SQLiteAdaptor/SQLite3Channel.m @@ -324,6 +324,8 @@ static id newNumberValue(const char *data, EOAttribute *attrib) { const char *text; text = (const char*)sqlite3_column_text(_currentStmt, i); + if (text == NULL) text = "0"; + values[i] = newNumberValue(text, attr); } break;