Search found 263 matches

by Fr0sT
19.07.2023, 08:07
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

marsupilami wrote: 16.07.2023, 12:19 On the DBC layer the TZGenericResolver does exactly that. It looks for a table name and then queries for the primary key.
But how it looks for table name? And how it could know when key field is aliased?
Anyway there are VIEWS that could contain literally everything
by Fr0sT
19.07.2023, 08:01
Forum: ZeosLib 7.2 Forum
Topic: How to post a record with a transaction that will rollback (PostgresSQL)
Replies: 2
Views: 329

Re: How to post a record with a transaction that will rollback (PostgresSQL)

The most correct way is 2nd independent transaction. IDK about Postgres, maybe it would require second connection.
by Fr0sT
11.07.2023, 10:39
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 :) Not reliable in general... A field in a query could be taken from any table, aliased, taken fro...
by Fr0sT
19.06.2023, 15:22
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

However an other suspicious line in TryUniToDate: else if (F in [Byte('-'),Byte('/'),Byte('\'),Byte(' ')]) then begin Shouldn't we be using FormatSettings.DateSeparator instead of a constant array...? I guess TryUniToTimeStamp is meant to be a kind of universal converter regardless of some regional...
by Fr0sT
04.05.2023, 17:22
Forum: ZeosLib 7.3/8.0 Forum
Topic: Zeos 8 - draft of Release Notes
Replies: 23
Views: 1386

Re: Zeos 8 - draft of Release Notes

In fact, everything that compiles in Delphi 7 compiles without problems in subsequent non-Unicode Delphi versions (not always the other way round). Unless you don't have all the sources, then there's a problem. Fair point. I revised the list of updates in 2005 and 2006 and it includes quite useful ...
by Fr0sT
04.05.2023, 12:14
Forum: ZeosLib 7.3/8.0 Forum
Topic: Zeos 8 - draft of Release Notes
Replies: 23
Views: 1386

Re: Zeos 8 - draft of Release Notes

Yes it compiles but I was worrying about the errors you reported.
Upgrading is the option I wish to avoid - the app is not worth the efforts. So far I have no issues with D7-built apps on W10
by Fr0sT
04.05.2023, 10:04
Forum: ZeosLib 7.3/8.0 Forum
Topic: TZMemTable suggestions
Replies: 6
Views: 462

Re: TZMemTable suggestions

Version is better to be 2-component: major and minor; minor versions are compatible at least backwards (newer software could read older data). However, in my opinion the format that is supposed for massive interchange should be more standard, probably XML, MsgPack or ProtoBuf. Regarding header: exte...
by Fr0sT
04.05.2023, 09:39
Forum: ZeosLib 7.3/8.0 Forum
Topic: Zeos 8 - draft of Release Notes
Replies: 23
Views: 1386

Re: Zeos 8 - draft of Release Notes

As for the D7, I wouldn't recommend Zeos8 for it, I get too many unexpected errors, it is true that testing on Windows11 (maybe too much hardcore). Ouch, bad news. I was going to upgrade my D7 app to the fresh Zeos. The problem is that it used trunk 7.3 which has never been released and turned to 8...
by Fr0sT
13.01.2023, 16:36
Forum: ZeosLib 7.3/8.0 Forum
Topic: Zeos get some Info
Replies: 4
Views: 413

Re: Zeos get some Info

marsupilami wrote: 12.01.2023, 09:40 We have a hard coded default port for MySQL? I agree it should be removed but I currently cannto spare the time to do that. Couls you maybe prepare a patch?
Turns out we do :)
Sure, this is really tiny patch but want to ensure it builds so I'll do it on Monday
by Fr0sT
09.01.2023, 09:20
Forum: ZeosLib 7.3/8.0 Forum
Topic: Zeos get some Info
Replies: 4
Views: 413

Re: Zeos get some Info

More to say, Zeos uses no default ports at all (except for MySQL - and I think it should be removed - https://dev.mysql.com/doc/c-api/8.0/en/mysql-real-connect.html) leaving this option to user or driver internals (config/default). And I think it's right. Transport level should be left to the driver...
by Fr0sT
09.01.2023, 09:12
Forum: ZeosLib 7.3/8.0 Forum
Topic: Get standard Library name
Replies: 8
Views: 438

Re: Get standard Library name

Maybe GetLoadedLibrary?
by Fr0sT
18.10.2022, 12:06
Forum: ZeosLib 7.3/8.0 Forum
Topic: Writing Blobs from Streams Failing in SQLite... SOMETIMES...
Replies: 17
Views: 800

Re: Writing Blobs from Streams Failing in SQLite... SOMETIMES...

Well, common approach to solving almost any issue is localize it first. So trace all the lines up to DB client lib call and push checks here and there (luckily Zeos comes with sources so you can modify the code). Another way is to find the exact Zeos commit which introduced the issue. If you say you...
by Fr0sT
10.10.2022, 13:58
Forum: ZeosLib 7.3/8.0 Forum
Topic: Writing Blobs from Streams Failing in SQLite... SOMETIMES...
Replies: 17
Views: 800

Re: Writing Blobs from Streams Failing in SQLite... SOMETIMES...

Heisenbug :( Are you building with Delphi? Try to include FastMM4 and turn on all memory corruption detection options. Maybe this will give some hint BTW. Your dumps seem to show that BLOBs contain all source contents plus a tail of (previous?) source contents while in the initial post you complaine...
by Fr0sT
22.09.2022, 09:31
Forum: ZeosLib 7.3/8.0 Forum
Topic: Writing Blobs from Streams Failing in SQLite... SOMETIMES...
Replies: 17
Views: 800

Re: Writing Blobs from Streams Failing in SQLite... SOMETIMES...

Well, that's SQLite so I guess the DB is local - some actions could be sent to background threads.

P.S.

Code: Select all

foo := True;
if (foo <> True) then
  foo := True;
:)
by Fr0sT
22.09.2022, 07:57
Forum: ZeosLib 7.3/8.0 Forum
Topic: Writing Blobs from Streams Failing in SQLite... SOMETIMES...
Replies: 17
Views: 800

Re: Writing Blobs from Streams Failing in SQLite... SOMETIMES...

OMG, this is the most paranoid code I've ever seen... Anyway it really doesn't check much. If you really are to check the loading, save blob to another memory stream and compare it with source one. Moreover, here you're checking only local assignment. Why not check if a blob was correctly saved to D...