fix: add missing quotes to parameterized queries from python (#5768)
parent
2e2acdb796
commit
708c5f089c
|
@ -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.
|
# 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
|
# It will query the database that the trigger is attached to by default. We'll
|
||||||
# soon have support for querying other DBs.
|
# 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
|
# 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
|
# 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
|
# you've written data into, you'll be able to see some results
|
||||||
|
|
|
@ -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.
|
# 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
|
# It will query the database that the trigger is attached to by default. We'll
|
||||||
# soon have support for querying other DBs.
|
# 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
|
# 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
|
# 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
|
# 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>
|
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>
|
Delete Usage: $ influxdb3 file-index delete --host=http://127.0.0.1:8585 -d <DATABASE> -t <TABLE>
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue