Skip to content

Commit 317a568

Browse files
committed
Don't raise "identifier will be truncated" messages in dblink
except creating new connections.
1 parent b5efc09 commit 317a568

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/dblink/dblink.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2109,7 +2109,7 @@ getConnectionByName(const char *name)
21092109
remoteConnHash = createConnHash();
21102110

21112111
key = pstrdup(name);
2112-
truncate_identifier(key, strlen(key), true);
2112+
truncate_identifier(key, strlen(key), false);
21132113
hentry = (remoteConnHashEnt *) hash_search(remoteConnHash,
21142114
key, HASH_FIND, NULL);
21152115

@@ -2170,7 +2170,7 @@ deleteConnection(const char *name)
21702170
remoteConnHash = createConnHash();
21712171

21722172
key = pstrdup(name);
2173-
truncate_identifier(key, strlen(key), true);
2173+
truncate_identifier(key, strlen(key), false);
21742174
hentry = (remoteConnHashEnt *) hash_search(remoteConnHash,
21752175
key, HASH_REMOVE, &found);
21762176

0 commit comments

Comments
 (0)