FROM : Shaun Wexler
DATE : Thu Jun 22 02:15:44 2006
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
DATE : Thu Jun 22 02:15:44 2006
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
| Related mails | Author | Date |
|---|---|---|
| beinstein | Jun 20, 00:41 | |
| Yorh | Jun 20, 01:24 | |
| colela | Jun 20, 01:38 | |
| James Bucanek | Jun 20, 02:24 | |
| Paul Lynch | Jun 20, 18:39 | |
| Keary Suska | Jun 20, 18:44 | |
| Benjamin Einstein | Jun 22, 01:26 | |
| Ryan Britton | Jun 22, 01:39 | |
| Benjamin Einstein | Jun 22, 01:45 | |
| Shaun Wexler | Jun 22, 02:15 | |
| Benjamin Einstein | Jul 2, 18:17 | |
| Bill Bumgarner | Jul 2, 19:03 | |
| Paul Collins | Jul 2, 20:25 | |
| Benjamin Einstein | Jul 2, 20:33 |






Cocoa mail archive

