Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+2-2
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)