From 3c719f9cf6721c4bb56436ae81c08fd7ae0a27e5 Mon Sep 17 00:00:00 2001 From: Radu Ioan Fericean Date: Mon, 20 Aug 2012 16:47:35 +0300 Subject: [PATCH] commented out postgres method --- timespans/storage_postgres.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/timespans/storage_postgres.go b/timespans/storage_postgres.go index 20bb2eb20..77789e494 100644 --- a/timespans/storage_postgres.go +++ b/timespans/storage_postgres.go @@ -44,11 +44,9 @@ func (psl *PostgresStorage) Flush() (err error) { } func (psl *PostgresStorage) GetRatingProfile(string) (rp *RatingProfile, err error) { - row := psl.Db.QueryRow(fmt.Sprintf("SELECT * FROM cdr WHERE uuid='%s'", uuid)) - var uuid_found string - var timespansJson string - err = row.Scan(&uuid_found, &cc.Direction, &cc.Tenant, &cc.TOR, &cc.Subject, &cc.Destination, &cc.Cost, &cc.ConnectFee, ×pansJson) - err = json.Unmarshal([]byte(timespansJson), cc.Timespans) + /*row := psl.Db.QueryRow(fmt.Sprintf("SELECT * FROM ratingprofiles WHERE id='%s'", id)) + err = row.Scan(&rp, &cc.Direction, &cc.Tenant, &cc.TOR, &cc.Subject, &cc.Destination, &cc.Cost, &cc.ConnectFee, ×pansJson) + err = json.Unmarshal([]byte(timespansJson), cc.Timespans)*/ return }