| От | Vivek Khera |
|---|---|
| Тема | Re: Preventing variables from "rolling over" |
| Дата | |
| Msg-id | x7d78okzeg.fsf@onceler.kciLink.com обсуждение исходный текст |
| Ответ на | Preventing variables from "rolling over" ("Dr. Evil" <drevil@sidereal.kz>) |
| Список | pgsql-general |
>>>>> "d" == drevil <drevil@sidereal.kz> writes: d> way to check for this condition before I do the addition? Is there a d> way to put a constraint on a variable, such that it's always positive? I have bunches of these: pid integer CHECK (pid >= 0), They work great. Your update will return failure so you'll only find out after the fact, but the table will not have been updated in any case. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Vivek Khera, Ph.D. Khera Communications, Inc. Internet: khera@kciLink.com Rockville, MD +1-240-453-8497 AIM: vivekkhera Y!: vivek_khera http://www.khera.org/~vivek/
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера