elastic / elasticsearch-sql-odbc

ODBC driver for Elasticsearch SQL
Other
0 stars 30 forks source link

SQLNumParams now counts parameter markers #174

Closed bpintea closed 5 years ago

bpintea commented 5 years ago

This PR adds an simple counter of the parameter markers within an attached SQL statement.

While a correct and complete implementation would require in our case sending the statement to the server for parameter analysis, this simple implementation should work for most cases where the application simply wants to validate the number of user-provided paramters number against the number of markers in the statement.