94 |
|
uses FBMessages, FB30Statement, FBParamBlock, Math; |
95 |
|
|
96 |
|
const |
97 |
< |
sLookupBlobMetaData = 'Select F.RDB$FIELD_SUB_TYPE, F.RDB$SEGMENT_LENGTH, RDB$CHARACTER_SET_ID, F.RDB$FIELD_TYPE '+ |
97 |
> |
sLookupBlobMetaData = 'Select F.RDB$FIELD_SUB_TYPE, F.RDB$SEGMENT_LENGTH, F.RDB$CHARACTER_SET_ID, F.RDB$FIELD_TYPE '+ |
98 |
|
'From RDB$FIELDS F JOIN RDB$RELATION_FIELDS R On R.RDB$FIELD_SOURCE = F.RDB$FIELD_NAME '+ |
99 |
< |
'Where Trim(R.RDB$RELATION_NAME) = Upper(Trim(?)) and Trim(R.RDB$FIELD_NAME) = Upper(Trim(?))'; |
99 |
> |
'Where Trim(R.RDB$RELATION_NAME) = Upper(Trim(?)) and Trim(R.RDB$FIELD_NAME) = Upper(Trim(?)) ' + |
100 |
> |
'UNION '+ |
101 |
> |
'Select F.RDB$FIELD_SUB_TYPE, F.RDB$SEGMENT_LENGTH, F.RDB$CHARACTER_SET_ID, F.RDB$FIELD_TYPE '+ |
102 |
> |
'From RDB$FIELDS F JOIN RDB$PROCEDURE_PARAMETERS P On P.RDB$FIELD_SOURCE = F.RDB$FIELD_NAME '+ |
103 |
> |
'Where Trim(P.RDB$PROCEDURE_NAME) = Upper(Trim(?)) and Trim(P.RDB$PARAMETER_NAME) = Upper(Trim(?)) '; |
104 |
|
|
105 |
|
{ TFB30BlobMetaData } |
106 |
|
|
122 |
|
begin |
123 |
|
SQLParams[0].AsString := GetRelationName; |
124 |
|
SQLParams[1].AsString := GetColumnName; |
125 |
+ |
SQLParams[2].AsString := GetRelationName; |
126 |
+ |
SQLParams[3].AsString := GetColumnName; |
127 |
|
with OpenCursor do |
128 |
|
if FetchNext then |
129 |
|
begin |