From acef92ffd6514de7da84afc8ed027c8bf821b53a Mon Sep 17 00:00:00 2001 From: Onder Kalaci Date: Fri, 9 Jan 2015 11:02:20 +0200 Subject: [PATCH] Final style changes Minor variable naming/error style fixes. --- pg_shard.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pg_shard.c b/pg_shard.c index a498973..7883a7c 100644 --- a/pg_shard.c +++ b/pg_shard.c @@ -549,14 +549,13 @@ DistributedQueryShardList(Query *query) /* error out if no shards exists for the table */ if (shardIntervalList == NIL) { - char *relName = get_rel_name(distributedTableId); + char *relationName = get_rel_name(distributedTableId); ereport(ERROR, (errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE), errmsg("could not find any shards for query"), - errdetail("No shards exist for distributed table" - " \"%s\".", relName), - errhint("Run master_create_worker_shards to " - "create shards " + errdetail("No shards exist for distributed table \"%s\".", + relationName), + errhint("Run master_create_worker_shards to create shards " "and try again."))); }