| От | Jasen Betts |
|---|---|
| Тема | Re: Updatable view should truncate table fields |
| Дата | |
| Msg-id | j9lgkb$id5$1@reversiblemaps.ath.cx обсуждение исходный текст |
| Ответ на | Updatable view should truncate table fields (Russell Keane <Russell.Keane@inps.co.uk>) |
| Список | pgsql-sql |
On 2011-11-08, Russell Keane <Russell.Keane@inps.co.uk> wrote: > > We can extend the table to accept more than 5 characters but the view must = > return 5 characters. > If we try to extend the table to accept, say, 10 characters the view will d= > isplay 10. > If I also cast the view field to 5 characters then any insert with more tha= > n 5 characters still fails. > > Any ideas??? re-load the view and functions, they are sill defined with the char(5) column (you'll probably yneed to drop them all (but not the table) first). plpgsql functions are partially compiled at the time they are defined subsequent modifictions to the datatypes in their definition will cause errors until they are re-defined --
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера