Search found 753 matches

by aehimself
02.10.2023, 20:21
Forum: ZeosLib 7.2 Forum
Topic: Delphi 2007 ZeosLib 7.2 error identifier FClientCP
Replies: 9
Views: 663

Re: Delphi 2007 ZeosLib 7.2 error identifier FClientCP

I'd argue against setting the DCU location in the library path for multiple reasons: - If a developer is changing anything in the source, recompiling the affected package each time to be able to test the change is unnecessary - If a user clones Zeos from Git / downloads the .zip from SF, after each ...
by aehimself
02.10.2023, 18:44
Forum: ZeosLib 7.2 Forum
Topic: Delphi 2007 ZeosLib 7.2 error identifier FClientCP
Replies: 9
Views: 663

Re: Delphi 2007 ZeosLib 7.2 error identifier FClientCP

What exactly do you mean by "FClientCP identifier compilation error"? Can you please post the exact error message? Installation steps roughly are... 1, Extract the package somewhere 2, Add Zeos's source, and it's subdirectories to your library path 3, Open the .groupproj for your Delphi ve...
by aehimself
22.09.2023, 08:38
Forum: ZeosLib 7.2 Forum
Topic: Dataset.Refresh and BookmarkValid problem
Replies: 4
Views: 540

Re: Dataset.Refresh and BookmarkValid problem

As far as I remember all bookmarks become invalid if you close and reopen (refresh) a dataset. You can solve what you are looking for is taking the value of all index fields prior and use TDataSet.Locate on the same fields after the refresh. P.s.: depending on your Delphi version FreeBookMark is no ...
by aehimself
07.08.2023, 11:10
Forum: ZeosLib 7.2 Forum
Topic: MySQL 8.1 without Legacy Mode
Replies: 1
Views: 315

Re: MySQL 8.1 without Legacy Mode

Hello,

Do you mean SSL? Afaik Zeos does support it, there were only issues with the library. Switching to LibMariaDB solved those aswell.

Do you receive any error messages?
by aehimself
02.08.2023, 12:55
Forum: ZeosLib 7.3/8.0 Forum
Topic: TZSQLProcessor .RowsAffected
Replies: 1
Views: 396

Re: TZSQLProcessor .RowsAffected

Well, the code-breaking but more elegant solution is waiting on GitHub to be applied :)
by aehimself
30.07.2023, 21:23
Forum: ZeosLib 7.3/8.0 Forum
Topic: TZSQLProcessor .RowsAffected
Replies: 1
Views: 396

TZSQLProcessor .RowsAffected

Hello, I recently got a request (of course when I should be on vacation, whenever else...) if I can implement multiple command execution in my tool. Zeos has me covered with TZSQLProcessor but I have to keep a standardized output... for one query it was simply "x record(s) affected", now I...
by aehimself
21.07.2023, 15:48
Forum: ZeosLib 7.3/8.0 Forum
Topic: ZMemtable, How to create a dataset and findkey?
Replies: 1
Views: 464

Re: ZMemtable, How to create a dataset and findkey?

In this sample does not exists zMemTable1.CreateDataSet, can I continue without that? Yes, that is correct. but there is not FindKey method, how to find them? Unfortunately I cannot help you wit index fields as I never used them, but you can locate even non-index fields: If Not ZMemTable1.Locate('f...
by aehimself
16.07.2023, 16:54
Forum: ZeosLib 7.3/8.0 Forum
Topic: Get index field(s) from TZAbstractRODataSet
Replies: 6
Views: 556

Re: Get index field(s) from TZAbstractRODataSet

How do you do that if the primary key of a table doesn't get used in any foreign key? Does it work then? No, not at all. In that case repositioning won't be possible (or inaccurate) but for my purpose it's not a huge deal. I'll take a look at the advices above once my new feature is completely erro...
by aehimself
09.07.2023, 17:34
Forum: Feature Requests
Topic: Asynchronous working DataSets?
Replies: 19
Views: 2231

Re: Asynchronous working DataSets?

Disclaimer: take my answer with a grain of salt as I'm not using PostgreSQL anywhere. My reply has no experience, and only a quick code check behind it. Fconn: libpq is reentrant (by relevant doc of postgres team). But I can image situation where just before calling AbortOperation() from another thr...
by aehimself
08.07.2023, 18:23
Forum: ZeosLib 7.3/8.0 Forum
Topic: Get index field(s) from TZAbstractRODataSet
Replies: 6
Views: 556

Re: Get index field(s) from TZAbstractRODataSet

I solved my issue by imported and exported keys in the mean time which seem to be doing the trick for my purpose.
However it would be really nice if we could get TField.IsIndexField working under Zeos :)
by aehimself
08.07.2023, 08:49
Forum: Feature Requests
Topic: Asynchronous working DataSets?
Replies: 19
Views: 2231

Re: Asynchronous working DataSets?

Any async code inside Zeos will add much of complicated code and create classes, that do many things. Clearly, it is not a good design. Have a look at APL in TComponent. Or System.Net.Socket.TSocket. Begin*() all over the code. What for? ZMethodInThread is good enough for start. In this context TZM...
by aehimself
06.07.2023, 20:20
Forum: ZeosLib 7.3/8.0 Forum
Topic: Get index field(s) from TZAbstractRODataSet
Replies: 6
Views: 556

Get index field(s) from TZAbstractRODataSet

Hello, I had this need already but always could get around it with bookmarks instead. I have a query (which can be a TZReadOnlyQuery or TZQuery) with an "unknown" select query. I need to find which fields are index fields on a database level, based on which values I can find the exact same...
by aehimself
17.06.2023, 20:27
Forum: ZeosLib 7.3/8.0 Forum
Topic: Issues related to using FormatSettings.LongDateFormat for Timestamps in ZDatasetParams
Replies: 5
Views: 735

Re: Issues related to using FormatSettings.LongDateFormat for Timestamps in ZDatasetParams

Yes, this is the standard date format in Hungary (where I live). I don't know which library you mean, because built-in RTL functions do handle "multi-char" delimiters (up to 2, that is) fine. The only issue on D11+ was that it's not accepting "2023. 06. 17" because it requires th...
by aehimself
16.06.2023, 20:47
Forum: ZeosLib 7.3/8.0 Forum
Topic: Issues related to using FormatSettings.LongDateFormat for Timestamps in ZDatasetParams
Replies: 5
Views: 735

Re: Issues related to using FormatSettings.LongDateFormat for Timestamps in ZDatasetParams

It's important here to mention the IDE used. Delphi 11 changed how date parsing is done and it caused our software at work to start failing at almost any point. Edit: 2 things. 1, Infinite loop? If I'm trying to feed it with a value surely different from my LongDateFormat, it simply crashes with a r...
by aehimself
02.06.2023, 07:02
Forum: ZeosLib 7.3/8.0 Forum
Topic: Possible issue with 64bit Oracle
Replies: 43
Views: 2169

Re: Possible issue with 64bit Oracle

Note: Is it correct that the CSV file is encoded in WIN1252? Yes, it is and no, it is not :D I'm simply calling If sl.Count > 0 Then sl.SaveToFile(Self.FileName); to save the export file so it's normal that it is using my codepage. In this era it definitely should be UTF8 though so you just pointed...