elastic / elasticsearch-sql-odbc

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

Fix: allow (re)setting the current catalog #212

Closed bpintea closed 4 years ago

bpintea commented 4 years ago

This PR allows the application set the value of the current catalog attribute, in case this value is the same with what the driver had previously returned for this attribute.

Although Elasticsearch/SQL has no proper catalog support currently, this case should be supported as a safe use of the API.

This currently only works if the attribute had been retrieved before setting, on the same connection; specifically, it won't work when this would be set as a pre-connection attribute.

Closes #211.