| От | Michael Fuhr |
|---|---|
| Тема | Re: BUG #1659: primary key accepts null value |
| Дата | |
| Msg-id | 20050512135208.GA45068@winnie.fuhr.org обсуждение исходный текст |
| Ответ на | BUG #1659: primary key accepts null value ("İbrahim" <ibrahimbayer@gmail.com>) |
| Список | pgsql-bugs |
On Wed, May 11, 2005 at 01:36:00PM +0100, İbrahim wrote: > > i m using pg 8.0.2 in a project with Visual Studio.NET at Windows Platform > but when i send a null value to my Prmary Key column it accepts that value. PRIMARY KEY implies NOT NULL. Are you sure the value being inserted is NULL and not, for example, an empty string? What's the output of the following query (use your own table and column names)? SELECT pkcolumn, length(pkcolumn), pkcolumn IS NULL FROM tablename; Are you sure the column has a PRIMARY KEY constraint? If you connect with psql, what's the output of the following command? \d tablename -- Michael Fuhr http://www.fuhr.org/~mfuhr/
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера