Skip to content

Commit 268da29

Browse files
committed
Don't raise "identifier will be truncated" messages in dblink
except creating new connections.
1 parent acbffaa commit 268da29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/dblink/dblink.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -2022,7 +2022,7 @@ getConnectionByName(const char *name)
20222022
remoteConnHash = createConnHash();
20232023

20242024
key = pstrdup(name);
2025-
truncate_identifier(key, strlen(key), true);
2025+
truncate_identifier(key, strlen(key), false);
20262026
hentry = (remoteConnHashEnt *) hash_search(remoteConnHash,
20272027
key, HASH_FIND, NULL);
20282028

@@ -2083,7 +2083,7 @@ deleteConnection(const char *name)
20832083
remoteConnHash = createConnHash();
20842084

20852085
key = pstrdup(name);
2086-
truncate_identifier(key, strlen(key), true);
2086+
truncate_identifier(key, strlen(key), false);
20872087
hentry = (remoteConnHashEnt *) hash_search(remoteConnHash,
20882088
key, HASH_REMOVE, &found);
20892089

0 commit comments

Comments
 (0)