• 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: Lengthy questions from a newbie (and a new problem)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Lengthy questions from a newbie (and a new problem)


  • Subject: Re: Lengthy questions from a newbie (and a new problem)
  • From: Shaun Wexler <email@hidden>
  • Date: Wed, 21 Jun 2006 17:15:44 -0700

On Jun 21, 2006, at 4:26 PM, Benjamin Einstein wrote:

theResult = [theConnection queryString:(@"SELECT password FROM users WHERE username = '%@'", username)];

Am I doing something flagrantly wrong?

Yes, you can't parenthesize the two arguments. The compiler will evaluate the expressions on either side of the comma separately, but only pass the leftmost arg as the result of the parenthesized value. Try:


theResult = [theConnection queryString:@"SELECT password FROM users WHERE username = '%@'", username];

--
Shaun Wexler
MacFOH
http://www.macfoh.com


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Re: Lengthy questions from a newbie (From: Keary Suska <email@hidden>)
 >Re: Lengthy questions from a newbie (and a new problem) (From: Benjamin Einstein <email@hidden>)

  • Prev by Date: Re: Lengthy questions from a newbie (and a new problem)
  • Next by Date: File tracking problem
  • Previous by thread: Re: Lengthy questions from a newbie (and a new problem)
  • Next by thread: filtering NSTreeController/NSOutlineView
  • Index(es):
    • Date
    • Thread