OSDN Git Service

Don't raise "identifier will be truncated" messages in dblink
authorItagaki Takahiro <itagaki.takahiro@gmail.com>
Thu, 25 Nov 2010 10:40:58 +0000 (19:40 +0900)
committerItagaki Takahiro <itagaki.takahiro@gmail.com>
Thu, 25 Nov 2010 10:58:29 +0000 (19:58 +0900)
except creating new connections.

contrib/dblink/dblink.c

index 4bfa767..09eea18 100644 (file)
@@ -2109,7 +2109,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);
 
@@ -2170,7 +2170,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);