• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSDates, NSTimestamps and the Java-bridge
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: NSDates, NSTimestamps and the Java-bridge
      • From: Ricardo Strausz <email@hidden>
References: 
 >NSDates, NSTimestamps and the Java-bridge (From: Ricardo Strausz <email@hidden>)

  • Prev by Date: NSPropertyListSerialization
  • Next by Date: Re: downloading dynamic images
  • Previous by thread: NSDates, NSTimestamps and the Java-bridge
  • Next by thread: Re: NSDates, NSTimestamps and the Java-bridge
  • Index(es):
    • Date
    • Thread