I'm using it with WO 5.3 and it works great!

Not for me. But this is maybe something else. This worked nice yesterday though:

NSMutableArray args = new NSMutableArray();
args.addObject (startdate);
args.addObject (enddate);
EOQualifier qual = EOQualifier.qualifierWithQualifierFormat ("enddate > %@ and startdate < %@", args); EOSortOrdering byStartDate = EOSortOrdering.sortOrderingWithKey ("startdate", EOSortOrdering.CompareAscending);
NSMutableArray sortOrder = new NSMutableArray ();
sortOrder.addObject (byStartDate);
EOFetchSpecification fetchSpec = new EOFetchSpecification ("Reservation", qual, sortOrder); NSMutableArray reservationList = new NSMutableArray (ec.objectsWithFetchSpecification (fetchSpec));


The dates are NSTimestamp's.
Now I get a SQL error:

SQL ERROR - [position 483, near 'E' in ' > 1.71324E+8 AND t0.star'] (0) and expected but not found at position 114.

The SQL at that position looks like this:

WHERE (t0.enddate > 1.71324E+8 AND t0.startdate < 1.741752E+8)


Why are the dates being inserted as "1.71324E+8" ? Is it normal?

It didn't help to set Java 1.4.2 as the preferred Java with the "Java Preferences" application.

Does anyone know how to fix this?

/John



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to