This repository was archived by the owner on Oct 29, 2024. It is now read-only.
This repository was archived by the owner on Oct 29, 2024. It is now read-only.
bind_params
not working with text regular expressions #768
Open
Description
- InfluxDB version: 1.7.7
- InfluxDB-python version: 5.2.3
- Python version: 3.7.2
- Operating system version: Ubuntu 18.04
Hi,
I'm iterating over my application to add the new version's bind_params parameter everywhere. But I have the following query:
Query:
SELECT COUNT(event_id)
FROM measurement
WHERE some_param=~/(?i)SomeValue*/
But when I try to use the bind_params:
Query:
SELECT COUNT(event_id)
FROM measurement
WHERE some_param=~/(?i)$value*/
----------------------------------------------------------
Bind params:
{
'value': 'SomeValue'
}
And the new query with the bind params returns an empty result (which is wrong). I tried a few more "variations" - regex part inside the param value, part of it inside, part of it outside - also not successfull ❌
I cannot find anything in the documentation about how are the bind_parameters used for text search parameters (regexes)
Can you help me ?
Thanks,
Ivo