Skip to content

Commit d965593

Browse files
authored
Merge pull request #39 from postgrespro/bugfix/issue-38
Bugfix/issue 38
2 parents cb475f6 + 2a38b71 commit d965593

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

expected/pg_variables_trans.out

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3829,3 +3829,8 @@ SELECT pgv_free();
38293829

38303830
(1 row)
38313831

3832+
--
3833+
-- Test case for issue #38 [PGPRO-4676]
3834+
--
3835+
SELECT pgv_insert('test', 'x5', ROW ((2::int, 1::int)), TRUE);
3836+
ERROR: could not identify a hash function for type record

pg_variables.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2116,6 +2116,13 @@ rollbackSavepoint(TransObject *object, TransObjectType type)
21162116
{
21172117
TransState *state;
21182118

2119+
/* Nothing to do here if trans object was removed already. */
2120+
if (dlist_is_empty(&object->states))
2121+
{
2122+
removeObject(object, type);
2123+
return;
2124+
}
2125+
21192126
state = GetActualState(object);
21202127
removeState(object, type, state);
21212128

sql/pg_variables_trans.sql

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1163,3 +1163,9 @@ SELECT pgv_insert('vars', 'r2', tab) FROM tab;
11631163
SELECT pgv_select('vars', 'r2');
11641164

11651165
SELECT pgv_free();
1166+
1167+
1168+
--
1169+
-- Test case for issue #38 [PGPRO-4676]
1170+
--
1171+
SELECT pgv_insert('test', 'x5', ROW ((2::int, 1::int)), TRUE);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy