Closed kg1990 closed 8 years ago
when i update influxdb version from 0.3.8 to 0.3.11, it not support chinese ,back up to 0.3.8, it works well
this is my code
gem 'influxdb', '0.3.11' require 'influxdb' InfluxDBClient = InfluxDB::Client.new({:hosts => '172.16.12.8', :database => 'webanalytics'}) points = [] points << { :series => 'area', :tags => { :sid => '1111', :area => '中文', :complete_area => '中文' }, :values => { :value => 1.0, :ip => '192.168.1.1' } } InfluxDBClient.write_points(points, 'u') query_result = InfluxDBClient.query("select * from area order by time desc limit 1") puts query_result
I got this result
{"name"=>"area", "tags"=>nil, "values"=>[{"time"=>"2016-11-15T08:56:42.9976Z", "area"=>nil, "complete_area"=>nil, "ip"=>"192.168.1.1", "sid"=>"1111", "value"=>1}]}
after save the "area" and "complete_area" change to nil.
waiting for reply best wishes!
sorry about that , this bug is slove in #171
Oh, I forgot about this issue. #171 is not solved yet, but I will take care of this when I'm home later.
when i update influxdb version from 0.3.8 to 0.3.11, it not support chinese ,back up to 0.3.8, it works well
this is my code
I got this result
after save the "area" and "complete_area" change to nil.
waiting for reply best wishes!