• 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: Ricardo Strausz <email@hidden>
  • Date: Tue, 13 May 2003 18:28:41 -0500

Thanks!
I'd tried that, but now the error is:

2003-05-13 18:26:10.929 Clientes[993] com/webobjects/foundation/NSForwardException: Lexical error at line 1, column 35. Encountered: ":" (58), after : ""
Stack Trace:
com.webobjects.foundation.NSForwardException for com.webobjects.eocontrol._private.TokenMgrError: Lexical error at line 1, column 35. Encountered: ":" (58), after : ""
at com.webobjects.eocontrol._private._EOQualifierParserTokenManager.getNext Token(_EOQualifierParserTokenManager.java:1019)
at com.webobjects.eocontrol._private._EOQualifierParser.jj_ntk(_EOQualifier Parser.java:1002)
at com.webobjects.eocontrol._private._EOQualifierParser.parseValueList(_EOQ ualifierParser.java:501)
at com.webobjects.eocontrol._private._EOQualifierParser.RelOpExpression(_EO QualifierParser.java:651)
at com.webobjects.eocontrol._private._EOQualifierParser.Expression(_EOQuali fierParser.java:594)
at com.webobjects.eocontrol._private._EOQualifierParser.parseLogicalExpress ion(_EOQualifierParser.java:885)
at com.webobjects.eocontrol.EOQualifier.qualifierWithQualifierFormat(EOQual ifier.java:938)


Any idea?


On martes, mayo 13, 2003, at 03:13 America/Mexico_City, Art Isbell wrote:


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.
_______________________________________________
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: Seejo Pylappan <email@hidden>
    • Re: NSDates, NSTimestamps and the Java-bridge
      • From: Art Isbell <email@hidden>
References: 
 >Re: NSDates, NSTimestamps and the Java-bridge (From: Art Isbell <email@hidden>)

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