You are not logged in.
Hello,
I am a new user of framework (started with MSSQL OLEDB and HTTP server/services).
Palying around (remote OLEDB throught HTTP) I used TSQLDBProxyStatementRandomAccess
to read ISQLDBRows.FetchAllToBinary results, but I get av on call TSQLDBProxyStatementRandomAccess.ColumnToVariant.
Cause is fConnection=nil so when I change your code
function TSQLDBProxyStatementRandomAccess.ColumnToVariant
...
{$ifndef UNICODE}
if Assigned(fConnection) and not fConnection.Properties.VariantStringAsWideString then begin
...
everything is ok.
If it is safe please make the fix.
Offline
I've committed https://synopse.info/fossil/info/91600990d3
but I don't understand why fConnection=nil in your case...
Offline
Because ColumnToVariant implemented on TSQLDBStatement and not on TSQLDBProxyStatementRandomAccess
so my fix is on function TSQLDBStatement.ColumnToVariant(Col: integer; var Value: Variant): TSQLDBFieldType;
and not on function TSQLDBProxyStatementRandomAccess.ColumnToVariant .
Offline