From 743706858b25718c2a0725a56329e74862389bdf Mon Sep 17 00:00:00 2001 From: Linh Vo Date: Wed, 25 Jan 2017 00:17:19 -0600 Subject: [PATCH] ExecutePQL --- bench/randquery.go | 3 +-- client.go | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/bench/randquery.go b/bench/randquery.go index 20573bc3f..e2e8aca03 100644 --- a/bench/randquery.go +++ b/bench/randquery.go @@ -123,8 +123,7 @@ func (b *RandomQuery) ExecuteQuery(contentType, db, query string, ctx context.Co if contentType == "protobuf" { return b.client.ExecuteQuery(ctx, db, query, true) } else if contentType == "pql" { - fmt.Println("HERRR") - return b.client.ExecutePql(ctx, db, query) + return b.client.ExecutePQL(ctx, db, query) } else { return nil, errors.New("unsupport content type") } diff --git a/client.go b/client.go index ce1f0c79f..2a2266000 100644 --- a/client.go +++ b/client.go @@ -195,7 +195,7 @@ func (c *Client) ExecuteQuery(ctx context.Context, db, query string, allowRedire } // ExecutePQL executes query string against db on the server. -func (c *Client) ExecutePql(ctx context.Context, db, query string) (interface{}, error) { +func (c *Client) ExecutePQL(ctx context.Context, db, query string) (interface{}, error) { u := url.URL{ Scheme: "http", Host: c.host,