mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-18 18:44:06 +08:00
Don't raise "identifier will be truncated" messages in dblink
except creating new connections.
This commit is contained in:
parent
6cb9d51133
commit
0a8ba868a8
@ -2171,7 +2171,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);
|
||||
|
||||
@ -2232,7 +2232,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…
Reference in New Issue
Block a user