fix(influxdb): fix incompatible result sets with older versions

Thanks for the fix!
This commit is contained in:
John Jin 2026-06-15 11:50:15 +08:00 committed by GitHub
parent 35f03a07b3
commit 6f480ca047
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -93,6 +93,9 @@ struct InfluxJsonResult {
#[derive(Deserialize)]
#[allow(dead_code)]
struct InfluxQueryResult {
/// The `statement_id` field may not be included in older versions (such as 1.1)
#[serde(default)]
#[allow(dead_code)]
statement_id: usize,
#[serde(default)]
#[allow(dead_code)]