FireDAC.Stan.Option.TFDResourceOptions.DirectExecute

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property DirectExecute: Boolean read GetDirectExecute

C++

__property bool DirectExecute = {read=GetDirectExecute, write=SetDirectExecute, stored=IsDES, default=0};

Properties

Type Visibility Source Unit Parent
property published
FireDAC.Stan.Option.pas
FireDAC.Stan.Option.hpp
FireDAC.Stan.Option TFDResourceOptions

Description

Controls the preparation of SQL statements.

Use the DirectExecute property to specify whether FireDAC should prepare an SQL statement before its execution (False) or execute it directly (True). The default value is False

The prepared and the direct execution may have different effects, and even the prepared execution may fail. If you encounter peculiar errors, try setting DirectExecute to True.

Note: When working with PostgreSQL and getting a result set with relacl fields, then set DirectExecute to true to show relacl fields as readable text. FireDAC uses PostgreSQL's textual format internally for result sets.

See Also