Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #35077
| References | <CAAPnF_VFzdcXW8Eg20kn_j0ywvG7CbK+jY3u_0EZjJhR-m4Meg@mail.gmail.com> <alpine.DEB.2.02.1212181600190.20469@gilgamesh> <CAAPnF_XPi9PQqaT-_r3YmpnR2Prns7FR-PkfTtaeiW9ayWoCDA@mail.gmail.com> |
|---|---|
| Date | 2012-12-19 09:42 +1100 |
| Subject | Re: Why Doesn't This MySQL Statement Execute? |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1033.1355870535.29569.python-list@python.org> (permalink) |
On Wed, Dec 19, 2012 at 9:28 AM, Tom Borkin <borkintom@gmail.com> wrote: > No (lol). It returns a date as a string: "2012-12-12" for example. > Tom Then that's why it doesn't work. Wayne was hinting at a major MAJOR problem with your code; it's interpolating data into the SQL statement, instead of providing parameters to the query. Don't do it! Just don't! ChrisA
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Why Doesn't This MySQL Statement Execute? Chris Angelico <rosuav@gmail.com> - 2012-12-19 09:42 +1100
csiph-web