postgres.git / summary / log / commit / refs
commit eaf0766d74ebf5975fc07344abb2bea599329d7e
Author: Itagaki Takahiro <itagaki.takahiro@gmail.com>
Date: Thu Nov 25 11:12:20 2010 +0000
First released in: 9.1.0, 8.1.23, 8.2.19, 8.3.13, 8.4.6, 9.0.2
Don't raise "identifier will be truncated" messages in dblink
except creating new connections.
contrib/dblink/dblink.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/contrib/dblink/dblink.c b/contrib/dblink/dblink.c
index 2478884f0a4..cef58946a43 100644
--- a/contrib/dblink/dblink.c
+++ b/contrib/dblink/dblink.c
@@ -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);
[parent: edc211424326]