Thanks to visit codestin.com
Credit goes to github.com

Skip to content
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
@Ivo-Donchev

Description

@Ivo-Donchev
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions