104 |
|
'From RDB$FIELDS F JOIN RDB$RELATION_FIELDS RF '+ |
105 |
|
'On F.RDB$FIELD_NAME = RF.RDB$FIELD_SOURCE JOIN RDB$FIELD_DIMENSIONS FD '+ |
106 |
|
'On FD.RDB$FIELD_NAME = F.RDB$FIELD_NAME ' + |
107 |
< |
'Where RF.RDB$RELATION_NAME = ? and RF.RDB$FIELD_NAME = ? Order by FD.RDB$DIMENSION asc'; |
107 |
> |
'Where RF.RDB$RELATION_NAME = ? and RF.RDB$FIELD_NAME = ? ' + |
108 |
> |
'UNION '+ |
109 |
> |
'Select F.RDB$FIELD_LENGTH, F.RDB$FIELD_SCALE, F.RDB$FIELD_TYPE, '+ |
110 |
> |
'F.RDB$DIMENSIONS, FD.RDB$DIMENSION, FD.RDB$LOWER_BOUND, FD.RDB$UPPER_BOUND, '+ |
111 |
> |
'F.RDB$CHARACTER_SET_ID '+ |
112 |
> |
'From RDB$FIELDS F JOIN RDB$PROCEDURE_PARAMETERS PP '+ |
113 |
> |
'On F.RDB$FIELD_NAME = PP.RDB$FIELD_SOURCE JOIN RDB$FIELD_DIMENSIONS FD '+ |
114 |
> |
'On FD.RDB$FIELD_NAME = F.RDB$FIELD_NAME ' + |
115 |
> |
'Where PP.RDB$PROCEDURE_NAME = ? and PP.RDB$PARAMETER_NAME = ? '+ |
116 |
> |
'Order by 5 asc'; |
117 |
|
|
118 |
|
|
119 |
|
{ TFB30ArrayMetaData } |
133 |
|
begin |
134 |
|
SQLParams[0].AsString := RelationName; |
135 |
|
SQLParams[1].AsString := ColumnName; |
136 |
+ |
SQLParams[2].AsString := RelationName; |
137 |
+ |
SQLParams[3].AsString := ColumnName; |
138 |
|
with OpenCursor do |
139 |
|
if FetchNext then |
140 |
|
begin |