[go: up one dir, main page]

Menu

Commit [r462]  Maximize  Restore  History

+ hor_components: moved the resource strings inside the new horcomponentsmessages.pas

* hor_components: rename rsHorLargeObjectNotOpen into rsHorLargeObjectNotOpened
+ hor_components: added rsHorLargeObjectNotDeleted
+ hor_components: added InvalidOid constant
- hor_components: fixed THorPQConnection.HorWriteStreamToLargeObject: -1 is returned in case of error by the lo_open and lo_write functions (not 0)
- hor_components: fixed THorPQConnection.HorWriteLargeObjectToStream: -1 is returned in case of error by the lo_open and lo_write functions (not 0)
+ hor_components: added function THorPQConnection.HorDeleteLargeObject(const _Oid: Oid): boolean;
* Needs hor_components version >= 1.0.0.0
- TDocuments: removed qAttachmentDataPart: no more necessary
- TfrmEditDocuments.btnAddClick: fixed unused variable
- Fixed the DbVersion and the already existing Updating field of tSettings inside the ver0006.sql
+ ver0006.sql: Drops "Content" column from "tDocumentsFiles" after the convertion from bytea to large objects
+ hor_main: latested know database version is 6
+ hor_components: Added the THorPQC_OnWriteProgress type
+ hor_components: THorPQConnection: added the FHorOnProgress member and the OnHorWriteProgress property
+ hor_components: Added constructor THorPQConnection.Create(AOwner: TComponent) to call InitialisePostgres3
+ hor_components: Added destructor THorPQConnection.Destroy to call ReleasePostgres3
* hor_components: THorPQConnection.HorCreateLargeObject: no more calls InitialisePostgres3 and ReleasePostgres3
* hor_components: THorPQConnection.HorWriteStreamToLargeObject: no more calls InitialisePostgres3 and ReleasePostgres3
* hor_components: THorPQConnection.HorWriteLargeObjectToStream: no more calls InitialisePostgres3 and ReleasePostgres3
+ hor_components: THorPQConnection.HorWriteStreamToLargeObject: calls FHorOnProgress providing the reached read size
+ hor_components: THorPQConnection.HorWriteLargeObjectToStream: calls FHorOnProgress providing the reached read size
+ TDocuments: FDatabase is now a THorPQConnection
+ TDocuments.Create: Database is now a THorPQConnection
+ Added procedure TDocuments.HorWriteProgress(Sender: THorPQConnection; const _Oid: Oid; _Stream: TStream; _Position: Int64) to call Application.ProcessMessage if called by the main program
+ TDocuments.SaveAttachmentFile: uses HorWriteLargeObjectToStream to save the attachment content that now is a large object
+ Added the rsMsgErrorExpectingTHorPQConnection message
I have compared the extraction of the medical data with the old bytea type and with the new large object --> they are the same --> works! :)

matfanjol 2020-04-13

changed /trunk/components/hor_components.lpk
changed /trunk/components/hor_components.pas
added /trunk/components/locale/horcomponentsmessages.po
removed /trunk/components/locale/horpqconnection.po
added /trunk/components/source/horcomponentsmessages.pas
changed /trunk/components/source/horpqconnection.pas
changed /trunk/healthor.lpi
changed /trunk/hor_documents.pas
changed /trunk/hor_edit_documents.pas
changed /trunk/hor_main.lfm
changed /trunk/hor_main.pas
changed /trunk/hor_messages.pas
changed /trunk/locale/healthor.de.po
changed /trunk/locale/healthor.en.po
changed /trunk/locale/healthor.es.po
changed /trunk/locale/healthor.fr_FR.po
changed /trunk/locale/healthor.it.po
changed /trunk/locale/healthor.po
changed /trunk/locale/healthor.pt_PT.po
changed /trunk/locale/healthor.ru.po
changed /trunk/scripts/ver0006.sql