]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Don't raise "identifier will be truncated" messages in dblink
authorItagaki Takahiro <itagaki.takahiro@gmail.com>
Thu, 25 Nov 2010 11:12:20 +0000 (20:12 +0900)
committerItagaki Takahiro <itagaki.takahiro@gmail.com>
Thu, 25 Nov 2010 11:12:20 +0000 (20:12 +0900)
except creating new connections.

contrib/dblink/dblink.c

index 916cfc79ac54a3a3875ec441d6b6f96acb086f2c..21a4bbd1c759424c8289093b86d6ec1f977dff5e 100644 (file)
@@ -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);