Fix quotation marks of tag values and escaping of field values#68
Conversation
|
Thanks for opening this PR 👍 Hopefully all issues regarding the line-protocol are resolved now! If you notice any other problems feel free to open more issues or pull requests. |
|
@Empty2k12 this and #64 should actually fix a problem I was just debugging :) what are the chances you could push a new release to crates.io that includes these? |
|
@Empty2k12 So, this is fairly weird - I gave that a shot and got the following pair of errors (with a bonus warning) that, all together, are super confusing: But it gets weirder. This doesn't happen when I specify version 0.1 from crates.io, but it does happen when I clone the repo, checkout the 0.1.0 tag, and build against that. I thought maybe I was hitting a compiler bug, but I tried updating stable and nightly to latest and got the same result. This is probably just a fundamental language misunderstanding on my part, but what are the chances you have a recommendation? Also, if it's easier/preferable, I can file a separate issue. In any case, the code in question: // queries is a Vec<WriteQuery>
for query in queries.into_iter() {
match client.query(&query).await {
Ok(_) => (),
Err(e) => println!("Query for character {} fail: {:?}", id, e)
};
} |
Description
Fixes two issues related to quotation marks of tag values and improper escaping of field values.
Float,SignedIntegerandUnsignedInteger, otherwise they will be part of the string. (Removing the quotation marks forTextwas already fixed in Fix improper quoting on tag values when the value was text #64.)InfluxDB docs:
InfluxDB docs:
Checklist
cargo fmt --allcargo clippy --all-targets --all-features -- -D warningscargo readme -r influxdb -t ../README.tpl > README.md