ttOptGetFlag
This procedure returns the optimizer flag settings for the current transaction. The results are returned as a result set that can be retrieved using the ODBC
SQLFetch function or the JDBC ResultSet.getXXX() method, just like the result of a SQL SELECT statement. Applications can request the value of a specific optimizer flag by passing the flag name to ttOptGetFlag. Alternatively, applications can request the values of all the optimizer flags by passing NULL. The optimizer flags and their meanings are described under the ttOptSetFlag built-in procedure.
Required Privilege
This procedure requires no privilege.
Related Views
This procedure has no related views.
Syntax
ttOptGetFlag('flagName')Parameters
ttOptGetFlag has the parameter:
| Parameter | Type | Description |
|---|---|---|
|
|
|
Name of the flag whose value is to be returned. If |
Result Set
ttOptGetFlag returns the result set:
| Column | Type | Description |
|---|---|---|
|
|
|
Name of the flag. See "ttOptSetFlag" for a description of possible flag values. |
|
|
|
Current flag value, either |
Examples
CALL ttOptGetFlag('TmpHash');See Also