Skip to content

Commit f387616

Browse files
bpinteaStuart Cam
and
Stuart Cam
authored
ODBC: Document the new VarcharLimit and EarlyExecution params (#54632)
* Document VarcharLimit and EarlyExecution params Add the documentation for the newly added VarcharLimit and EarlyExecution DSN attributes. * Remove obsolete VersionChecking param This param had been removed already along the #53082 work. * Update docs/reference/sql/endpoints/odbc/configuration.asciidoc fix typo Co-Authored-By: Stuart Cam <[email protected]> * Update docs/reference/sql/endpoints/odbc/configuration.asciidoc fix typo Co-Authored-By: Stuart Cam <[email protected]>
1 parent 85ec33f commit f387616

File tree

1 file changed

+36
-21
lines changed

1 file changed

+36
-21
lines changed

docs/reference/sql/endpoints/odbc/configuration.asciidoc

Lines changed: 36 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,11 @@ This corresponds to the `MaxFetchSize` setting in <<odbc-cfg-dsnparams>>.
199199
The maximum number of megabytes that the driver will accept for one page.
200200
This corresponds to the `MaxBodySizeMB` setting in <<odbc-cfg-dsnparams>>.
201201
+
202+
* Varchar limit
203+
+
204+
The maximum character length of the string type columns.
205+
this correspeonds to the `VarcharLimit` setting in <<odbc-cfg-dsnparams>>.
206+
+
202207
* Floats format
203208
+
204209
How should the floating point numbers be printed, when these are converted to string by the driver.
@@ -214,30 +219,36 @@ This corresponds to the `Packing` setting in <<odbc-cfg-dsnparams>>.
214219
Should the data between the server and the driver be compressed?
215220
This corresponds to the `Compression` setting in <<odbc-cfg-dsnparams>>.
216221
+
217-
* Follow HTTP redirects?
222+
* Follow HTTP redirects
218223
+
219224
Should the driver follow HTTP redirects of the requests to the server?
220225
This corresponds to the `Follow` setting in <<odbc-cfg-dsnparams>>.
221226
+
222-
* Use local timezone?
227+
* Use local timezone
223228
+
224229
Should the driver use machine's local timezone? The default is UTC.
225230
This corresponds to the `ApplyTZ` setting in <<odbc-cfg-dsnparams>>.
226231
+
227-
* Auto-escape PVAs?
232+
* Auto-escape PVAs
228233
+
229234
Should the driver auto-escape the pattern-value arguments?
230235
This corresponds to the `AutoEscapePVA` setting in <<odbc-cfg-dsnparams>>.
231236
+
232-
* Multi value field lenient?
237+
* Multi value field lenient
233238
+
234239
Should the server return one value out of a multi-value field (instead of rejecting the request)?
235240
This corresponds to the `MultiFieldLenient` setting in <<odbc-cfg-dsnparams>>.
236241
+
237-
* Include frozen indices?
242+
* Include frozen indices
238243
+
239244
Should the server consider the frozen indices when servicing a request?
240245
This corresponds to the `IndexIncludeFrozen` setting in <<odbc-cfg-dsnparams>>.
246+
+
247+
* Early query execution
248+
+
249+
Should the driver execute a non-parameterized query as soon as it's submitted
250+
for preparation?
251+
This corresponds to the `EarlyExecution` setting in <<odbc-cfg-dsnparams>>.
241252

242253

243254
[[dsn_editor_misc]]
@@ -402,6 +413,18 @@ This is concerning the HTTP answer body of one page, not the cumulated data
402413
volume that a query might generate.
403414

404415

416+
`VarcharLimit` (default: `0`)::
417+
The maximum width of the string columns.
418+
If this setting is greater than zero, the driver will advertise all the string
419+
type columns as having a maximum character length equal to this value and will
420+
truncate any longer string to it. The string types are textual fields
421+
(TEXT, KEYWORD etc.) and some specialized fields (IP, the GEOs etc.). Note that
422+
no interpretation of the value is performed before trunctation, which can lead
423+
to invalid values if the limit is set too low.
424+
This is required for those applications that do not support column lengths as
425+
large as {es} fields can be.
426+
427+
405428
`ApplyTZ` (default: `no`)::
406429
A boolean value controlling the timezone of:
407430

@@ -429,21 +452,6 @@ This setting is not effective when the application fetches from the driver the
429452
values as numbers and then does the conversion subsequently itself.
430453

431454

432-
`VersionChecking` (default: `strict`)::
433-
By default, the version of the driver and that of the server must be the same.
434-
This parameter will allow a driver to connect to a server of different version.
435-
The variation however can only be of the minor version, both endpoints must be
436-
of same major version number.
437-
Possible values:
438-
439-
* `strict`: the versions must be in sync;
440-
441-
* `major`: the versions must have the same major number.
442-
443-
WARNING: This parameter can only be used for troubleshooting purposes. Running
444-
with versions out of sync is not supported.
445-
446-
447455
`MultiFieldLenient` (default: `true`)::
448456
This boolean parameter controls the behavior of the server in case a
449457
multi-value field is queried. In case this is set and the server encounters
@@ -466,5 +474,12 @@ will escape these special characters if not already done by the application.
466474
If this parameter is `true`, the server will include the frozen indices in the
467475
query execution.
468476
This corresponds to {es-sql}'s request parameter `index_include_frozen`
469-
(see <<sql-rest-fields>>).
470477

478+
479+
`EarlyExecution` (default: `true`)::
480+
If this parameter is `true`, the driver will execute a statement as soon as the
481+
application submits it for preparation, i.e. early and is functionally
482+
equivalent to a direct execution. This will only happen if the query lacks
483+
parameters. Early execution is useful with those applications that inspect the
484+
result before actually executing the query. {es-sql} lacks a preparation API,
485+
so early execution is required for interoperability with these applications.

0 commit comments

Comments
 (0)