Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #4005
| References | <4dabf65a$0$18250$4fafbaef@reader2.news.tin.it> <mailman.505.1303116284.9059.python-list@python.org> <4db5ef2d$0$10574$742ec2ed@news.sonic.net> |
|---|---|
| Date | 2011-04-26 08:10 +1000 |
| Subject | Re: strange use of %s |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.823.1303769429.9059.python-list@python.org> (permalink) |
On Tue, Apr 26, 2011 at 8:01 AM, John Nagle <nagle@animats.com> wrote: > Don't worry about having MySQL do the CONCAT. That happens > once during query parsing here, because all the arguments to > CONCAT are defined in the statement. > Good point. Although the abstraction is still a little leaky in that you can't use this to search for a percent character anywhere in the string (come to think of it, how _would_ you do that? I think you'd have to backslash-escape it, prior to escaping it for the string, but I'd have to check), so it doesn't make a lot of difference where the percent signs are added. Chris Angelico
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
strange use of %s Tracubik <affdfsdfdsfsd@b.com> - 2011-04-18 08:29 +0000
Re: strange use of %s Tim Golden <mail@timgolden.me.uk> - 2011-04-18 09:44 +0100
Re: strange use of %s John Nagle <nagle@animats.com> - 2011-04-25 15:01 -0700
Re: strange use of %s Chris Angelico <rosuav@gmail.com> - 2011-04-26 08:10 +1000
Re: strange use of %s Chris Angelico <rosuav@gmail.com> - 2011-04-18 18:50 +1000
Re: strange use of %s Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2011-04-18 22:22 -0700
Re: strange use of %s Chris Angelico <rosuav@gmail.com> - 2011-04-19 15:31 +1000
Re: strange use of %s Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2011-04-19 21:01 -0700
csiph-web