Search found 1891 matches

by marsupilami
29.08.2023, 14:35
Forum: ZDBC (ZEOS Database Connectivity)
Topic: Delphi 11 exception
Replies: 1
Views: 675

Re: Delphi 11 exception

Hello Marco, "Requested database driver was not found" means that you try to use a driver that Zeos doesn't know. Given your information, I can only do assumptions here. I assume that with Delphi 10.4 you use Zeos 7.2 or something older? Master currently contains a version of Zeos 8.0. One...
by marsupilami
16.08.2023, 11:42
Forum: ZeosLib 7.2 Forum
Topic: Starting transaction fails with "SQL logic error"
Replies: 7
Views: 486

Re: Starting transaction fails with "SQL logic error"

Hmmm - for me the following works as expected: procedure TForm1.Button1Click(Sender: TObject); var Conn: TZConnection; begin Conn := TZConnection.Create(self); Conn.Protocol := 'sqlite'; Conn.ControlsCodePage := cCP_UTF8; Conn.Database := 'D:\Projekte\Zeos\sqlite-x86-3390300\test.sqlite'; Conn.Libra...
by marsupilami
14.08.2023, 16:11
Forum: ZeosLib 7.3/8.0 Forum
Topic: Lazarus : Can't find unit ZDbcDbLib used by ZAbstractConnection when compiling Zeos r8041
Replies: 4
Views: 490

Re: Lazarus : Can't find unit ZDbcDbLib used by ZAbstractConnection when compiling Zeos r8041

Hello JD,

did you change something in the ZEOS.INC file? For me the following works as expected:
  • Install Debian 12
  • Install FPC 3.2.2 / Lazarus 2.6.2 using fpcupdeluxe
  • Install the latest Zeos 8 from SVN
With best regards,

Jan
by marsupilami
14.08.2023, 13:44
Forum: ZeosLib 7.3/8.0 Forum
Topic: Lazarus : Can't find unit ZDbcDbLib used by ZAbstractConnection when compiling Zeos r8041
Replies: 4
Views: 490

Re: Lazarus : Can't find unit ZDbcDbLib used by ZAbstractConnection when compiling Zeos r8041

Hello JD,

which Linux distribution do you use and do you use the FPC and Lazarus version of that distribution or dou you install them yourself?

With best regards,

Jan
by marsupilami
14.08.2023, 13:39
Forum: ZeosLib 7.2 Forum
Topic: Starting transaction fails with "SQL logic error"
Replies: 7
Views: 486

Re: Starting transaction fails with "SQL logic error"

Hello Graham, I am not sure, if SQLite transaction support is started by default on Zeos 7.2. Could you please add the following line to TZConnection.Properties? ExtendedErrorMessage=1 This should enable SQLite extended error information. Maybe this will help in finding the problem. Best regards, Jan
by marsupilami
10.08.2023, 10:33
Forum: ZeosLib 7.3/8.0 Forum
Topic: Lazarus - TZUpdateSQL not bringing its update fields selected
Replies: 8
Views: 588

Re: Lazarus - TZUpdateSQL not bringing its update fields selected

Hello Renato,

I think the starting point for thius would be ZUpdateSqlEditor.pas in src\component. I assume, it contains the editor window for TZUpdateSQL. I didn't work on that code (yet) so I don't know what it looks like in there.

Best regards,

Jan
by marsupilami
26.07.2023, 07:43
Forum: PostgreSQL
Topic: process "RAISE INFO" via zeoslib
Replies: 1
Views: 443

Re: process "RAISE INFO" via zeoslib

Hello iteh,

with current Zeos it simply isn't possible to use that mechanism. For me that clearly is a bug. You might want to check into doing your own notice processor or notice dispatcher. Simply replacing Zeos notice dispatcher and notice processor shouldn't do any harm.

With best regards,

Jan
by marsupilami
26.07.2023, 07:41
Forum: ZeosLib 7.3/8.0 Forum
Topic: Lazarus - TZUpdateSQL not bringing its update fields selected
Replies: 8
Views: 588

Re: Lazarus - TZUpdateSQL not bringing its update fields selected

Hello Renato,

unfortunately - no. There simply was no time to look at it yet.

With best regards,

Jan
by marsupilami
25.07.2023, 16:06
Forum: ZeosLib 7.3/8.0 Forum
Topic: PostgreSQL sslpassword
Replies: 7
Views: 577

Re: PostgreSQL sslpassword

Locked ;)
by marsupilami
25.07.2023, 16:05
Forum: ZeosLib 7.3/8.0 Forum
Topic: PostgreSQL AbortOperation - race conditions?
Replies: 4
Views: 500

Re: PostgreSQL AbortOperation - race conditions?

In theory this could lead to problems - although these will be very rare ocassions. The more rare the worse. Sorry, thats my opinion. If so it need to be fixed, because it can even lead to AV's, that can not be pinpointed with ease. You are welcome to fix this :) The critical section could decrease...
by marsupilami
24.07.2023, 10:26
Forum: ZeosLib 7.2 Forum
Topic: tfieldOnchage
Replies: 3
Views: 452

Re: tfieldOnchage

Hello Med, the behavior you want to see changed is part of the FPC TDataSet comnponent. We cannot change it in Zeos. This is annoying and a shame because onsettext event gives us the customdaaedit concerned. I am not sure, what you mean. You might want to consider keeping the old value (BeforeEdit) ...
by marsupilami
16.07.2023, 12:40
Forum: ZeosLib 7.2 Forum
Topic: How to post a record with a transaction that will rollback (PostgresSQL)
Replies: 2
Views: 335

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

You could think about inserting in the log when the transaction is finished: var con : TZConnection; qry1, qry2, qry3, qryLog : TZQuery; begin try con.TransactIsolationLevel := tiReadCommitted; con.StartTransaction; qry1.Connection := con; qry2.Connection := con; qry3.Connection := con; qryLog.Conne...
by marsupilami
16.07.2023, 12:37
Forum: ZeosLib 7.3/8.0 Forum
Topic: PostgreSQL sslpassword
Replies: 7
Views: 577

Re: PostgreSQL sslpassword

I applied your patches, so I think, this is redundant?
by marsupilami
16.07.2023, 12:36
Forum: ZeosLib 7.3/8.0 Forum
Topic: PostgreSQL AbortOperation - race conditions?
Replies: 4
Views: 500

Re: PostgreSQL AbortOperation - race conditions?

This is continuation of https://zeoslib.sourceforge.io/viewtopic.php?f=10&p=245122. Short recap: if I did not missed something, variables: FLogMessage, FConn are subject to race condition when AbortOperation() is called from another thread. Even if presented analysis of source code is correct, ...
by marsupilami
16.07.2023, 12:19
Forum: ZeosLib 7.3/8.0 Forum
Topic: Get index field(s) from TZAbstractRODataSet
Replies: 6
Views: 567

Re: Get index field(s) from TZAbstractRODataSet

However it would be really nice if we could get TField.IsIndexField working under Zeos :) I am not sure. Embarcadero says the following about the IsIndexField property: Inspect the IsIndexField to determine if a field is used in the dataset's current index. Soo - translated to Zeos the IsIndexField...