Re: Negative Integers Escaping

Поиск
Список
Период
Сортировка
От Daniele Varrazzo
Тема Re: Negative Integers Escaping
Дата
Msg-id BANLkTi=CmNqYBBbV0SvrOdL9JiFPzU-AXw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Negative Integers Escaping  (Federico Di Gregorio <federico.digregorio@dndg.it>)
Список psycopg
On Sun, May 29, 2011 at 9:04 PM, Federico Di Gregorio
<federico.digregorio@dndg.it> wrote:

> A mathematical expression doesn't need, at least in SQL, any whitespace
> so, writing colname-%s is *correct* and the programmer is correct when
> expects the DB adapter to quote the arguments to make sure they don't
> introduce any new errors in SQL.

Groan... https://github.com/dvarrazzo/psycopg/commit/281427f450d6e9755d4c3cbc9fb159d45ca10ee6

tl:dr: added space in front of negative sign for all the numeric
types. With this patch the unit test doesn't report any failure, so I
hope no regression.

-- Daniele

В списке psycopg по дате отправления:

Предыдущее
От: Federico Di Gregorio
Дата:
Сообщение: Re: Negative Integers Escaping
Следующее
От: Marko Kreen
Дата:
Сообщение: Re: Negative Integers Escaping