NSTimeStamp

"coyote4442002" <[email protected]>
Newsgroups gmane.comp.web.webobjects.newbies
Message-ID <[email protected]>
Hello,

I have a problem with NSTimestamp. I build a Textfield with a specific
Dateformat (like "%d.%m.%y"). When I fill it with a correct date I get
an error like this:

com.webobjects.eoaccess.EOGeneralAdaptorException: EvaluateExpression
failed: <com.webobjects.jdbcadaptor.OpenBasePlugIn$OpenBaseExpression:
"INSERT INTO PATIENT(PATIENT_ID, NACHNAME, VORNAME, INWORK,
MODIFY_DATE, CREATE_DATE, GEB_DATUM, STRING_ID, GEB_ORT, GEB_NAME)
VALUES (?, ?, ?, NULL, NULL, ?, ?, NULL, ?, ?)" withBindings:
1:101(patientId), 2:"Mustermann"(nachname), 3:"Peter"(vorname),
4:2005-06-08 09:51:13(createDate), 5:1957-01-15 00:03:00(gebDatum),
6:"Osnabrück"(gebOrt), 7:""(gebName)>:
    Next exception:SQL State:42000 -- error code: 0 -- msg: SQL ERROR
- [position 200, near 'E' in '1.38732822E+9, NULL, 'Osn'] insert
error: comma expected but not found in data.
SQL: INSERT INTO PATIENT(PATIENT_ID, NACHNAME, VORNAME, INWORK,
MODIFY_DATE, CREATE_DATE, GEB_DATUM, STRING_ID, GEB_ORT, GEB_NAME)
VALUES (101, 'Mustermann', 'Peter', NULL, NULL, 139909873.198,
-1.38732822E+9, NULL, 'Osnabrück', '')

Can anyone help me? I'm using Webobjects 5.2.3 on Windows 2000.

Thanks, Carsten




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/webobjects-newbies/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.