Skip to content

Commit d3c1265

Browse files
committed
Don't raise "identifier will be truncated" messages in dblink
except creating new connections.
1 parent 2d1e426 commit d3c1265

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
@@ -2089,7 +2089,7 @@ getConnectionByName(const char *name)
20892089
remoteConnHash = createConnHash();
20902090

20912091
key = pstrdup(name);
2092-
truncate_identifier(key, strlen(key), true);
2092+
truncate_identifier(key, strlen(key), false);
20932093
hentry = (remoteConnHashEnt *) hash_search(remoteConnHash,
20942094
key, HASH_FIND, NULL);
20952095

@@ -2150,7 +2150,7 @@ deleteConnection(const char *name)
21502150
remoteConnHash = createConnHash();
21512151

21522152
key = pstrdup(name);
2153-
truncate_identifier(key, strlen(key), true);
2153+
truncate_identifier(key, strlen(key), false);
21542154
hentry = (remoteConnHashEnt *) hash_search(remoteConnHash,
21552155
key, HASH_REMOVE, &found);
21562156

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