1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-03 22:24:49 +03:00

Change "WARN" message generated if a unique index is attempted on a table/key

containing non-unique data
This commit is contained in:
Marc G. Fournier 1997-02-25 03:38:23 +00:00
parent 36058981a4
commit 00bcb8a0ed

View File

@ -5,7 +5,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Id: nbtsort.c,v 1.11 1997/02/22 10:04:16 vadim Exp $ * $Id: nbtsort.c,v 1.12 1997/02/25 03:38:23 scrappy Exp $
* *
* NOTES * NOTES
* *
@ -171,7 +171,7 @@ _bt_isortcmp(BTSortKey *k1, BTSortKey *k2)
if ( _bt_inspool->isunique ) if ( _bt_inspool->isunique )
{ {
_bt_spooldestroy ((void*)_bt_inspool); _bt_spooldestroy ((void*)_bt_inspool);
elog (WARN, "Cannot insert a duplicate key into a unique index."); elog (WARN, "Cannot create unique index. Table contains non-unique values");
} }
return(0); /* 1 = 2 */ return(0); /* 1 = 2 */
} }