logstash-plugins / logstash-filter-jdbc_streaming

A Logstash filter that can enrich events with data from a database
Apache License 2.0
12 stars 23 forks source link

prepared_statement_bind_values about binding Array #37

Open Memento1990 opened 5 years ago

Memento1990 commented 5 years ago

When i bind an array like [1,2,3,4] into prepared_statement_bind_values, the real executing sql is '1,2,3,4'. That's bad news for IN in sql.

What i want:

select .... where somefield IN (1,2,3,4)

But:

select ... where somefield IN('1,2,3,4')