aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorItagaki Takahiro <itagaki.takahiro@gmail.com>2010-11-25 20:12:20 +0900
committerItagaki Takahiro <itagaki.takahiro@gmail.com>2010-11-26 18:10:00 +0900
commit268da2921907e7b5b1e9b0990957181a8dd7b410 (patch)
tree9e48a5c9fcdaa028421835683a07771319dadcba
parentacbffaa77d0c4846f8749daa45fde507be1e969b (diff)
downloadpostgresql-268da2921907e7b5b1e9b0990957181a8dd7b410.tar.gz
postgresql-268da2921907e7b5b1e9b0990957181a8dd7b410.zip
Don't raise "identifier will be truncated" messages in dblink
except creating new connections.
-rw-r--r--contrib/dblink/dblink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/dblink/dblink.c b/contrib/dblink/dblink.c
index 7cb8cd4a2d6..962e2577dac 100644
--- a/contrib/dblink/dblink.c
+++ b/contrib/dblink/dblink.c
@@ -2022,7 +2022,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);
@@ -2083,7 +2083,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);