Re: Lengthy questions from a newbie (and a new problem)
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