1211 |
|
begin |
1212 |
|
TextOut := TStringList.Create; |
1213 |
|
try |
1214 |
< |
s := Format('<array dim = "%d" sqltype = "%d" length = "%d" relation_name = "%s" column_name = "%s"', |
1215 |
< |
[ar.GetDimensions,ar.GetSQLType,ar.GetSize, |
1214 |
> |
if ar.GetCharSetWidth = 0 then |
1215 |
> |
s := Format('<array dim = "%d" sqltype = "%d" length = "%d" relation_name = "%s" column_name = "%s"', |
1216 |
> |
[ar.GetDimensions,ar.GetSQLType,ar.GetSize, |
1217 |
> |
ar.GetTableName,ar.GetColumnName]) |
1218 |
> |
else |
1219 |
> |
s := Format('<array dim = "%d" sqltype = "%d" length = "%d" relation_name = "%s" column_name = "%s"', |
1220 |
> |
[ar.GetDimensions,ar.GetSQLType,ar.GetSize div ar.GetCharSetWidth, |
1221 |
|
ar.GetTableName,ar.GetColumnName]); |
1222 |
|
case ar.GetSQLType of |
1223 |
|
SQL_DOUBLE, SQL_FLOAT, SQL_LONG, SQL_SHORT, SQL_D_FLOAT, SQL_INT64: |
1917 |
|
FOwnsInStream := false; |
1918 |
|
FLineIndex := 1; |
1919 |
|
FIndex := 1; |
1920 |
+ |
FCurLine := ''; |
1921 |
|
end; |
1922 |
|
|
1923 |
|
procedure TBatchSQLStatementReader.SetStreamSource(Lines: TStrings); |