Re: [go-nuts] gocql date field conversion issue

2018-04-11 Thread Raju
Hi Henrik, Thanks for the reply. I do see that code in marshal.go in my gocql repo. So I should be having this specific PR. case TypeDate: return unmarshalDate(info, data, value) case TypeDate: return marshalDate(info, value) And the corresponding func implementations are also there.

Re: [go-nuts] gocql date field conversion issue

2018-04-11 Thread Henrik Johansson
There is a PR for `date` marshalling https://github.com/gocql/gocql/pull/878 that is merged March last year. If you have gocql older than that I suggest trying to update but I am not sure if it helps. Timestamp/time.Time has always worked very well for me though so if you can switch that could be

[go-nuts] gocql date field conversion issue

2018-04-11 Thread Raju
I have a table in cassandra which looks like this: create table dailyusage( name string service string date date ); I need to write a query in Go using gocql package to filter the results from dailyusage table based on a user provided date range I have created my query like this