diff options
author | Itagaki Takahiro <itagaki.takahiro@gmail.com> | 2010-06-09 03:39:26 +0000 |
---|---|---|
committer | Itagaki Takahiro <itagaki.takahiro@gmail.com> | 2010-06-09 03:39:26 +0000 |
commit | 5a41c317c58603e1beff5f2f31e157a30f41a3bf (patch) | |
tree | cd7ee30f10fab19d37d79c008d985c02ebc3ffd6 /contrib/dblink | |
parent | d6e503a493d2a54221531654d48a62fddc8ae9a2 (diff) | |
download | postgresql-5a41c317c58603e1beff5f2f31e157a30f41a3bf.tar.gz |
Avoid "identifier will be truncated" warning in dblink
when connection string is longer than NAMEDATALEN.
The previous fix for long connection name broke the behavior.
Diffstat (limited to 'contrib/dblink')
-rw-r--r-- | contrib/dblink/dblink.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/dblink/dblink.c b/contrib/dblink/dblink.c index b9ba4f9482..cc76b857ac 100644 --- a/contrib/dblink/dblink.c +++ b/contrib/dblink/dblink.c @@ -8,7 +8,7 @@ * Darko Prenosil <Darko.Prenosil@finteh.hr> * Shridhar Daithankar <shridhar_daithankar@persistent.co.in> * - * $PostgreSQL: pgsql/contrib/dblink/dblink.c,v 1.93 2010/06/09 00:56:02 itagaki Exp $ + * $PostgreSQL: pgsql/contrib/dblink/dblink.c,v 1.94 2010/06/09 03:39:26 itagaki Exp $ * Copyright (c) 2001-2010, PostgreSQL Global Development Group * ALL RIGHTS RESERVED; * @@ -2399,7 +2399,7 @@ get_connect_string(const char *servername) /* first gather the server connstr options */ srvname = pstrdup(servername); - truncate_identifier(srvname, strlen(srvname), true); + truncate_identifier(srvname, strlen(srvname), false); foreign_server = GetForeignServerByName(srvname, true); if (foreign_server) |