| От | Tom Lane |
|---|---|
| Тема | Re: CHAR constants |
| Дата | |
| Msg-id | 14680.1026493749@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | CHAR constants (Thomas Lockhart <lockhart@fourpalms.org>) |
| Список | pgsql-hackers |
Thomas Lockhart <lockhart@fourpalms.org> writes:
> So, what should the behavior be of a constant declared as
> CHAR 'hi'
> ? Right now it fails, since SQL9x asks that the char type defaults to a
> length of one and our parser does not distinguish between usage as a
> constant declaration and as a column definition (where you would want
> the "char(1)" to be filled in). But istm that for a constant string, the
> length should be whatever the string is, or unspecified.
Seems we should convert that to char(2). Not sure how difficult it is
to do though...
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера