112 |
|
function GetSQLText: AnsiString; |
113 |
|
function GetProcessedSQLText: AnsiString; |
114 |
|
function GetSQLDialect: integer; |
115 |
+ |
function GetFlags: TStatementFlags; virtual; |
116 |
|
|
117 |
|
{GetDSQLInfo only supports isc_info_sql_stmt_type, isc_info_sql_get_plan, isc_info_sql_records} |
118 |
|
procedure Prepare(aTransaction: ITransaction=nil); overload; |
290 |
|
|
291 |
|
function TFBStatement.GetProcessedSQLText: AnsiString; |
292 |
|
begin |
293 |
< |
if FProcessedSQL = '' then |
294 |
< |
ProcessSQL(FSQL,FGenerateParamNames,FProcessedSQL); |
295 |
< |
Result := FProcessedSQL |
293 |
> |
if not FHasParamNames then |
294 |
> |
Result := FSQL |
295 |
> |
else |
296 |
> |
begin |
297 |
> |
if FProcessedSQL = '' then |
298 |
> |
ProcessSQL(FSQL,FGenerateParamNames,FProcessedSQL); |
299 |
> |
Result := FProcessedSQL; |
300 |
> |
end; |
301 |
|
end; |
302 |
|
|
303 |
|
function TFBStatement.GetSQLDialect: integer; |
305 |
|
Result := FSQLDialect; |
306 |
|
end; |
307 |
|
|
308 |
+ |
function TFBStatement.GetFlags: TStatementFlags; |
309 |
+ |
begin |
310 |
+ |
Result := []; |
311 |
+ |
end; |
312 |
+ |
|
313 |
|
procedure TFBStatement.Prepare(aTransaction: ITransaction); |
314 |
|
begin |
315 |
|
Prepare('',aTransaction); |