468 |
|
var |
469 |
|
Collation, CharSetId : integer; |
470 |
|
i : integer; |
471 |
< |
ColList, Column, Constraint : String; |
471 |
> |
Column, Constraint : String; |
472 |
|
SubType : integer; |
473 |
|
IntChar : integer; |
474 |
|
qryTables, qryPrecision, qryConstraints, qryRelConstraints, qryGenerators : TIBSQL; |
478 |
|
TableType: integer; |
479 |
|
begin |
480 |
|
Result := true; |
481 |
– |
ColList := ''; |
481 |
|
IntChar := 0; |
482 |
|
ValidRelation := false; |
483 |
|
|
786 |
|
qryViews, qryColumns : TIBSQL; |
787 |
|
RelationName, ColList : String; |
788 |
|
begin |
789 |
+ |
ColList := ''; |
790 |
|
qryViews := TIBSQL.Create(FDatabase); |
791 |
|
qryColumns := TIBSQL.Create(FDatabase); |
792 |
|
try |
937 |
|
var separator: string; |
938 |
|
i: integer; |
939 |
|
|
940 |
– |
function GetMask(Bits: integer): byte; |
941 |
– |
begin |
942 |
– |
case Bits of |
943 |
– |
1: Result := $01; |
944 |
– |
2: Result := $03; |
945 |
– |
3: Result := $07; |
946 |
– |
end; |
947 |
– |
end; |
948 |
– |
|
940 |
|
function GetDDLEvent(Phase: TTriggerPhase; ObjectName: string): string; |
941 |
|
begin |
942 |
|
Result := ''; |
985 |
|
Result += 'ANY DDL STATEMENT' |
986 |
|
else |
987 |
|
repeat |
988 |
< |
if TypeID and GetMask(DDLTriggers[i].Bits) <> 0 then |
989 |
< |
begin |
999 |
< |
if (DDLTriggers[i].Bits > 0) and (TypeID and $01 <> 0) then |
1000 |
< |
Result += GetDDLEvent(DDLTriggers[i].Bit1,DDLTriggers[i].ObjectName); |
988 |
> |
if (DDLTriggers[i].Bits > 0) and (TypeID and $01 <> 0) then |
989 |
> |
Result += GetDDLEvent(DDLTriggers[i].Bit1,DDLTriggers[i].ObjectName); |
990 |
|
|
991 |
< |
if (DDLTriggers[i].Bits > 1) and (TypeID and $02 <> 0) then |
992 |
< |
Result += GetDDLEvent(DDLTriggers[i].Bit2,DDLTriggers[i].ObjectName); |
991 |
> |
if (DDLTriggers[i].Bits > 1) and (TypeID and $02 <> 0) then |
992 |
> |
Result += GetDDLEvent(DDLTriggers[i].Bit2,DDLTriggers[i].ObjectName); |
993 |
|
|
994 |
< |
if (DDLTriggers[i].Bits > 2) and (TypeID and $04 <> 0) then |
995 |
< |
Result += GetDDLEvent(DDLTriggers[i].Bit3,DDLTriggers[i].ObjectName); |
1007 |
< |
end; |
994 |
> |
if (DDLTriggers[i].Bits > 2) and (TypeID and $04 <> 0) then |
995 |
> |
Result += GetDDLEvent(DDLTriggers[i].Bit3,DDLTriggers[i].ObjectName); |
996 |
|
TypeID := TypeID shr DDLTriggers[i].Bits; |
997 |
|
Inc(i); |
998 |
|
until TypeID = 0; |