| От | Adrian Klaver |
|---|---|
| Тема | Re: Fwd: Timestamp Query Parameters |
| Дата | |
| Msg-id | 53222E92.6050100@aklaver.com обсуждение исходный текст |
| Ответ на | Fwd: Timestamp Query Parameters (Ari King <ari.brandeis.king@gmail.com>) |
| Список | psycopg |
On 03/13/2014 03:11 PM, Ari King wrote:
> Do not quote the %s.
>
>
> Thanks for the suggestion, but unquoting the %s did not solve the issue.
Probably should have mentioned before:
mogrify(operation[, parameters])
Return a query string after arguments binding. The string returned
is exactly the one that would be sent to the database running the
execute() method or similar.
So mogrify does not actually run against the database. I was assuming
you where doing an execute() later which may be an erroneous assumption.
To use parameters in execute() see here:
http://initd.org/psycopg/docs/usage.html#passing-parameters-to-sql-queries
>
> -Ari
>
--
Adrian Klaver
adrian.klaver@aklaver.com
В списке psycopg по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера