pgsql: Force the second argument of SUBSTRING(foo FOR bar) to be int4,

Поиск
Список
Период
Сортировка
От tgl@svr1.postgresql.org (Tom Lane)
Тема pgsql: Force the second argument of SUBSTRING(foo FOR bar) to be int4,
Дата
Msg-id 20051113191206.B35D2DB65D@svr1.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Log Message:
-----------
Force the second argument of SUBSTRING(foo FOR bar) to be int4, to avoid
surprising results when it's some other numeric type.  This doesn't solve
the generic problem of surprising implicit casts to text, but it's a
low-impact way of making sure this particular case behaves sanely.
Per gripe from Harald Fuchs and subsequent discussion.

Tags:
----
REL8_0_STABLE

Modified Files:
--------------
    pgsql/src/backend/parser:
        gram.y (r2.481 -> r2.481.4.1)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/parser/gram.y.diff?r1=2.481&r2=2.481.4.1)

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

Предыдущее
От: tgl@svr1.postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Force the second argument of SUBSTRING(foo FOR bar) to be int4,
Следующее
От: gsmet@pgfoundry.org (User Gsmet)
Дата:
Сообщение: pgfouine - pgfouine: improved error support