| От | Jeff Davis |
|---|---|
| Тема | custom type similar to varchar(#) |
| Дата | |
| Msg-id | 200208021159.32790.list-pgsql-general@empires.org обсуждение исходный текст |
| Ответы |
Re: custom type similar to varchar(#)
|
| Список | pgsql-general |
I think that this question was adressed before, but I looked around and
couldn't find the answer.
I would like to try to emulate the behavior of the old style varchar(#), in
which it automatically truncated values that were oversized. To do this, it
occured to me to try making a custom type, but for that I would need to
accept the numerical argument as part of the type. I could not find any way
in the documentation to create such a type. It would occur to me that I could
try to use the atttypmod value as varchar appearently does, but I'm not sure
exactly how to do that.
Any suggestions?
Thanks,
Jeff
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера