mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-22 10:09:22 +02:00
* improve statementtype detection. Mantis #22723, patch by Lacak2
git-svn-id: trunk@22563 -
This commit is contained in:
parent
a320db479e
commit
d2cc65aff0
@ -592,8 +592,13 @@ begin
|
||||
// If the statementtype is isc_info_sql_stmt_exec_procedure then
|
||||
// override the statement type derrived by parsing the query.
|
||||
// This to recognize statements like 'insert into .. returning' correctly
|
||||
if IBStatementType = isc_info_sql_stmt_exec_procedure then
|
||||
FStatementType := stExecProcedure;
|
||||
case IBStatementType of
|
||||
isc_info_sql_stmt_select: FStatementType := stSelect;
|
||||
isc_info_sql_stmt_insert: FStatementType := stInsert;
|
||||
isc_info_sql_stmt_update: FStatementType := stUpdate;
|
||||
isc_info_sql_stmt_delete: FStatementType := stDelete;
|
||||
isc_info_sql_stmt_exec_procedure: FStatementType := stExecProcedure;
|
||||
end;
|
||||
|
||||
if FStatementType in [stSelect,stExecProcedure] then
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user