mirror of
https://github.com/postgres/postgres.git
synced 2026-04-10 11:37:33 -04:00
Don't raise "identifier will be truncated" messages in dblink
except creating new connections.
This commit is contained in:
parent
edc2114243
commit
eaf0766d74
1 changed files with 2 additions and 2 deletions
|
|
@ -2166,7 +2166,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);
|
||||
|
||||
|
|
@ -2227,7 +2227,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 a new issue