+"RDB$RELATION_CONSTRAINTS PK"
+",RDB$RELATION_CONSTRAINTS FK"
+",RDB$REF_CONSTRAINTS RC"
+",RDB$INDEX_SEGMENTS ISP"
+",RDB$INDEX_SEGMENTS ISF "
<BUG>+"WHERE CAST(PK.RDB$RELATION_NAME AS VARCHAR(40)) = ? and "

+"CAST(FK.RDB$RELATION_NAME AS VARCHAR(40)) = ? and "
</BUG>
+" FK.RDB$CONSTRAINT_NAME = RC.RDB$CONSTRAINT_NAME "

+"RDB$RELATION_CONSTRAINTS PK"
+",RDB$RELATION_CONSTRAINTS FK"
+",RDB$REF_CONSTRAINTS RC"
+",RDB$INDEX_SEGMENTS ISP"
+",RDB$INDEX_SEGMENTS ISF "
+"WHERE CAST(PK.RDB$RELATION_NAME AS VARCHAR(" + (OBJECT_NAME_LENGTH + 10) + ")) = ? and "
+"CAST(FK.RDB$RELATION_NAME AS VARCHAR(" + (OBJECT_NAME_LENGTH + 10) +")) = ? and "
+" FK.RDB$CONSTRAINT_NAME = RC.RDB$CONSTRAINT_NAME "
