Skip to content

DF_STRICT_ATTRIBUTES

See Also

Overview

Determines how attribute values will be interpreted.

Level

Global

Type

Boolean, temporary

Access

Read / Write

Values

  • True
  • False

Remarks

If the value of DF_STRICT_ATTRIBUTES is True, setting an attribute will be interpreted precisely—attempting to set an attribute to an unsupported value will cause an error.

For example, the DF_FILE_LOCK_TYPE attribute can be set to DF_LOCK_TYPE_NONE, DF_LOCK_TYPE_FILE, or DF_LOCK_TYPE_RECORD. However, since record locking is not available in the Embedded Database driver, setting DF_FILE_LOCK_TYPE to DF_LOCK_TYPE_RECORD will result in the attribute being set to DF_LOCK_TYPE_FILE if the value of DF_STRICT_ATTRIBUTES is False. Conversely, if DF_STRICT_ATTRIBUTES is True, the above example would cause a DFERR_UNSUPPORTED_ATTRIBUTE_VALUE error.

In most cases, setting an attribute to an unsupported value with strict attributes off will not change the current value of the attribute.