* EOAdaptors/SQLiteAdaptor/SQLiteChannel.m: Handle a null number

value as the string "0".



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@26228 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Matt Rice 2008-03-06 16:33:02 +00:00
parent e35a70da43
commit f1983f243d
2 changed files with 5 additions and 0 deletions

View file

@ -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 <ayers@fsfe.org>
* EOControl/EOFault.m ([-forward::]): Make dummy implementation.

View file

@ -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;