Re: NSDates, NSTimestamps and the Java-bridge
Re: NSDates, NSTimestamps and the Java-bridge
- Subject: Re: NSDates, NSTimestamps and the Java-bridge
- From: Art Isbell <email@hidden>
- Date: Mon, 12 May 2003 22:13:44 -1000
On Monday, May 12, 2003, at 04:52 PM, Ricardo Strausz wrote:
id nst = [Util nst:[desde description]]; //this is an NSTimestamp
created by Util.java
NSString* nss = [NSString stringWithFormat:@"fecha>='%@'",[nst
toString]];
and the error is:
** Error JDBCColumn for setting date type for 2003-04-12 05:00:00
Etc/GMT- class = class java.lang.String.
Your qualifier operator is ">=", yet the value being compared is a
string rather than a NSTimestamp. This doesn't seem correct. Would
this work?
NSString* nss = [NSString stringWithFormat:@"fecha>=%@", nst];
Note that I removed the single quotes surrounding the %@. EOF should
take care of quoting.
Aloha,
Art
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.