Fix typo in previous commit
authorPetr Jelinek <pjmodos@pjmodos.net>
Thu, 23 Apr 2015 17:18:06 +0000 (19:18 +0200)
committerCraig Ringer <craig@2ndquadrant.com>
Fri, 24 Apr 2015 04:42:13 +0000 (12:42 +0800)
bdr_init_copy.c

index 0c56d443db1ef7d80acf6cc61a3e7b4fc0b703c2..bc73de2185b6fc3653db7a263b6de9aa0dd3c85c 100644 (file)
@@ -973,7 +973,7 @@ initialize_node_entry(PGconn *conn, NodeInfo *ni, char* node_name, Oid dboid,
                             "  node_dboid, node_name, node_init_from_dsn)"
                             " VALUES ('c', '"UINT64_FORMAT"', %u, %u, %s, %s);",
                      ni->local_sysid, ni->local_tlid, dboid,
-                     PQescapeLiteral(conn, remote_connstr, strlen(node_name)),
+                     PQescapeLiteral(conn, node_name, strlen(node_name)),
                      PQescapeLiteral(conn, remote_connstr, strlen(remote_connstr)));
    res = PQexec(conn, query->data);