100 |
|
|
101 |
|
implementation |
102 |
|
|
103 |
< |
uses FBAttachment, FB30Statement; |
103 |
> |
uses IBUtils, FBAttachment, FB30Statement{$ifdef WINDOWS}, Windows{$endif}; |
104 |
|
|
105 |
|
const |
106 |
|
sGetArrayMetaData = 'Select F.RDB$FIELD_LENGTH, F.RDB$FIELD_SCALE, F.RDB$FIELD_TYPE, '+ |
131 |
|
CharWidth: integer; |
132 |
|
begin |
133 |
|
CharWidth := 0; |
134 |
< |
RelationName := AnsiUpperCase(RelationName); |
135 |
< |
ColumnName := AnsiUpperCase(ColumnName); |
134 |
> |
RelationName := SafeAnsiUpperCase(RelationName); |
135 |
> |
ColumnName := SafeAnsiUpperCase(ColumnName); |
136 |
|
stmt := TFB30Statement.Create(aAttachment as TFB30Attachment,aTransaction, |
137 |
|
sGetArrayMetaData ,aAttachment.GetSQLDialect); |
138 |
|
with stmt do |
276 |
|
0,nil, |
277 |
|
FBufSize,BytePtr(FBuffer) |
278 |
|
); |
279 |
< |
Check4DataBaseError; |
279 |
> |
Check4DataBaseError(ConnectionCodePage); |
280 |
|
end; |
281 |
|
SignalActivity; |
282 |
|
end; |
292 |
|
FBufSize,BytePtr(FBuffer) |
293 |
|
); |
294 |
|
if not Force then |
295 |
< |
Check4DataBaseError; |
295 |
> |
Check4DataBaseError(ConnectionCodePage); |
296 |
|
end; |
297 |
|
SignalActivity; |
298 |
|
end; |