mirror of
https://github.com/postgres/postgres.git
synced 2025-06-18 00:02:37 -04:00
Don't raise "identifier will be truncated" messages in dblink
except creating new connections.
This commit is contained in:
parent
b5efc09404
commit
317a568c88
@ -2109,7 +2109,7 @@ getConnectionByName(const char *name)
|
||||
remoteConnHash = createConnHash();
|
||||
|
||||
key = pstrdup(name);
|
||||
truncate_identifier(key, strlen(key), true);
|
||||
truncate_identifier(key, strlen(key), false);
|
||||
hentry = (remoteConnHashEnt *) hash_search(remoteConnHash,
|
||||
key, HASH_FIND, NULL);
|
||||
|
||||
@ -2170,7 +2170,7 @@ deleteConnection(const char *name)
|
||||
remoteConnHash = createConnHash();
|
||||
|
||||
key = pstrdup(name);
|
||||
truncate_identifier(key, strlen(key), true);
|
||||
truncate_identifier(key, strlen(key), false);
|
||||
hentry = (remoteConnHashEnt *) hash_search(remoteConnHash,
|
||||
key, HASH_REMOVE, &found);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user