mirror of
https://github.com/zebrajr/postgres.git
synced 2025-12-07 00:20:24 +01:00
Don't raise "identifier will be truncated" messages in dblink
except creating new connections.
This commit is contained in:
parent
fab2af30d6
commit
ec66f65899
|
|
@ -2145,7 +2145,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);
|
||||
|
||||
|
|
@ -2206,7 +2206,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