fix: add missing quotes to parameterized queries from python

pull/5768/head
Jamie Strandboge 2025-01-13 10:53:21 -06:00
parent 2e2acdb796
commit 3a2f61b8f3
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View File

@ -468,7 +468,7 @@ def process_writes(influxdb3_local, table_batches, args=None):
# here's an example of executing a parameterized query. Only SQL is supported.
# It will query the database that the trigger is attached to by default. We'll
# soon have support for querying other DBs.
query_result = influxdb3_local.query("SELECT * FROM cpu where host = $host", query_params)
query_result = influxdb3_local.query("SELECT * FROM cpu where host = '$host'", query_params)
# the result is a list of Dict that have the column name as key and value as
# value. If you run the WAL test plugin with your plugin against a DB that
# you've written data into, you'll be able to see some results

View File

@ -471,7 +471,7 @@ def process_writes(influxdb3_local, table_batches, args=None):
# here's an example of executing a parameterized query. Only SQL is supported.
# It will query the database that the trigger is attached to by default. We'll
# soon have support for querying other DBs.
query_result = influxdb3_local.query("SELECT * FROM cpu where host = $host", query_params)
query_result = influxdb3_local.query("SELECT * FROM cpu where host = '$host'", query_params)
# the result is a list of Dict that have the column name as key and value as
# value. If you run the WAL test plugin with your plugin against a DB that
# you've written data into, you'll be able to see some results
@ -743,4 +743,4 @@ To accelerate performance on specific queries, you can define non-primary keys t
Create Usage: $ influxdb3 file-index create --host=http://127.0.0.1:8585 -d <DATABASE> -t <TABLE> <COLUMNS>
Delete Usage: $ influxdb3 file-index delete --host=http://127.0.0.1:8585 -d <DATABASE> -t <TABLE>
```
```