You are not logged in.
Pages: 1
Hi all
I'm trying to export an statement from MSSQL to sqlite with this code:
Result := DB3Conn.NewTableFromRows( ltable, rows, True, colsTypes );
It used to work well but I recently updated mormot sources and I'm getting this error
EDatabaseError with message 'Field '' has no dataset'
Looking into the function found this line "Rows.ReleaseRows;" just before BindFromRows, If comment this line it works.
Rows.ReleaseRows;
// write row data
Ins.BindFromRows(ColumnForcedTypes,Rows);
Ins.ExecutePrepared;
Ins.Reset;
Is it a bug ?
thanks
Last edited by jairgza (2020-11-09 00:05:14)
Offline
It works on some DB, but not on others.
Which TSQLDBCOnnection class do you use to access MSSQL?
IIRC it was necessary to avoid memory leak.
Please try to find where ReleaseRows has been inserted, in the commit history.
Offline
tested with 2 clases TOleDBMSSQLConnectionProperties and TSQLDBFireDACConnectionProperties to connect to SQLServer Express 2014 (localhost win10), Delphi 10.2 Upd3
ReleaseRows was inserted :
> File SynDB.pas
> check-in [a1dfe9124e] at 2020-03-22 11:06:28 on branch trunk
> {5875} reverted ISQLDBRows.RefCount check and introduced an explicit call to new ReleaseRows method
Offline
Pages: 1