Search found 1891 matches

by marsupilami
22.11.2023, 11:27
Forum: Downloads
Topic: Where is the Zeos 7.3 version?
Replies: 6
Views: 4406

Re: Where is the Zeos 7.3 version?

Hello Darsh, as mentioned in my other post : Zeos 7.3 has been renamed to Zeos 8.0. See the 8.0-patches branch in the Subversion repository or in the GIT repository on GitHub . Also note that support for Delphi 12 is not included yet. A patch is waiting for testing and integration: https://github.co...
by marsupilami
01.11.2023, 11:21
Forum: SQLite
Topic: SQLite and AutoInc field
Replies: 2
Views: 560

Re: SQLite and AutoInc field

Hello essence-ciel, i am not sure, what you try to do. But: Your code in TDataModule1.TAffectionsAfterPost doesn't make sense. Even worse - usually this will put you into an infinite loop because you call post, which will call AfterPost which will call Post which will call AfterPost ........... Call...
by marsupilami
01.11.2023, 11:10
Forum: ZeosLib 7.3/8.0 Forum
Topic: tdatasource
Replies: 3
Views: 415

Re: tdatasource

I am sorry, in that case it should be procedure tfrmUserRec (Sender: TObject; Field: TField); begin if field =nil then statbar.text:=inttostr( recno) else if Field.FieldName = 'AMOUNT' then begin sum:=sum+field.curvalue; //calculated three times showmessage(field.fieldname); //showed three times; en...
by marsupilami
26.10.2023, 13:27
Forum: ZeosLib 7.3/8.0 Forum
Topic: tdatasource
Replies: 3
Views: 415

Re: tdatasource

medhome wrote: 25.10.2023, 15:50 ANY IDEA ? ( THIS CONCERNS FREE PASCAL OR LAZARURUS );
I suggest to check that the field name is correct. Something like if Field.FieldName = 'NTIERS'.

As to why this gets called for all fields: This might be a problem in FPC.
by marsupilami
17.10.2023, 17:14
Forum: MS SQL Server
Topic: Invalid variant type cast error when inserting a row in mssql server 2012 table with identity column
Replies: 5
Views: 1329

Re: Invalid variant type cast error when inserting a row in mssql server 2012 table with identity column

Hello xutanou, we did quite some debugging on my machine today to find out what happens. All this is about Zeos finding out the value of the identity column. There may be several things to consider: 1) ADO-ODBC-Bridge The way you use the ADO driver you always use the ADO-ODBC-Bridge which is somethi...
by marsupilami
17.10.2023, 08:51
Forum: ZeosLib 7.2 Forum
Topic: Create Database error - cannot run inside a transaction block
Replies: 2
Views: 1404

Re: Create Database error - cannot run inside a transaction block

I am not sure if TZSQLProcessor starts a transaction automatically. Is AutoCommit set to true on your connection? Since the create database statement really is only one statement, you don't need to use TZSQLProcessor. What happens, if you do something like the follwing code block? script := 'CREATE ...
by marsupilami
16.10.2023, 08:43
Forum: MS SQL Server
Topic: Invalid variant type cast error when inserting a row in mssql server 2012 table with identity column
Replies: 5
Views: 1329

Re: Invalid variant type cast error when inserting a row in mssql server 2012 table with identity column

Hello xutanou,
xutanou wrote: 13.10.2023, 17:17 "INVALID VARIANT TYPE CAST"
This usually is a programming error in the user program - including Zeos. So I agree with aehimself: we need an example on how to reproduce the error.
by marsupilami
03.10.2023, 08:04
Forum: ZeosLib 7.2 Forum
Topic: Delphi 2007 ZeosLib 7.2 error identifier FClientCP
Replies: 9
Views: 678

Re: Delphi 2007 ZeosLib 7.2 error identifier FClientCP

$(ZEOS)\src\webservice It shouldn't be necessary to add the webservice folder. The webservice folder is the home of the webservice server. All files that the webservice client needs are in the dbc path already. I just had no idea how to organize things in a better way. Maybe wevservice needs to be ...
by marsupilami
25.09.2023, 18:34
Forum: ZeosLib 7.2 Forum
Topic: Dataset.Refresh and BookmarkValid problem
Replies: 4
Views: 549

Re: Dataset.Refresh and BookmarkValid problem

Bookmarks are not safe for my needs but RDB$DB_KEY seems safe to me: It is persistent in the tables until backup/restore and is unique in the table. Sure, it can be reused after the garbage collector cleans up the data, but when i need DB_KEY there is ever a live transaction that the GC can't clean...
by marsupilami
22.09.2023, 10:10
Forum: SQLite
Topic: TZAbstractRODataset throws 'External: SIGSEGV'
Replies: 1
Views: 324

Re: TZAbstractRODataset throws 'External: SIGSEGV'

Hello RedHead, we don't support Code Typhoon. Zeos 7.3.0-alpha is - as the name says - an alpha version. This version is really old and was never meant to be included in any stable software. Please uninstall this version and check wether the problem also happens with the current 8.0-patches branch f...
by marsupilami
22.09.2023, 10:05
Forum: ZeosLib 7.2 Forum
Topic: Dataset.Refresh and BookmarkValid problem
Replies: 4
Views: 549

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. This is correct. Bookmarks are only meant to be used whil...
by marsupilami
20.09.2023, 08:27
Forum: MySQL
Topic: Delphi 2007 zeos 6.6.6 Mariadb 5.7 sql update problem
Replies: 2
Views: 1174

Re: Delphi 2007 zeos 6.6.6 Mariadb 5.7 sql update problem

Hello Daniele, You could hook a TZSqlMonitor to your connextion and see if the statement gets executed. If it is in the log, it gets executed and you will have to take a look at the database side. Also it makes ense to look at the transaction management: Maybe the statement gets executed but the tra...
by marsupilami
05.09.2023, 08:31
Forum: ZeosLib 7.3/8.0 Forum
Topic: "Operation not allowed in WRITE ONLY mode" with Firebird and BLOBs
Replies: 1
Views: 342

Re: "Operation not allowed in WRITE ONLY mode" with Firebird and BLOBs

Hello Siegbert, that sounds strange. I maintain an application with Firebiord and didn't see that problöem yet. A test case that demonstrates the problem really would help. Could you please make sure that you update to the latest Zeos 8.0 revision from SVN (branches/8.0-patches) or from Github (8.0-...
by marsupilami
29.08.2023, 14:54
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"

Hmm - that sounds strange. Without a reproducible example it will be hard to debug. I could create a link on our nextcloud instance and send it to you via PN, so you could upload your project there. Could you create a log using TZSQLMonitor? Maybe that reveals something strange? With best regards, Jan
by marsupilami
29.08.2023, 14:45
Forum: ZeosLib 7.3/8.0 Forum
Topic: Lost connection to database
Replies: 1
Views: 348

Re: Lost connection to database

Hello, the code you mention usually doesn't do any reconnection. It is meant to clean up memory only. I seem to remember that there is / was a function in older mysql versions that tries to reconnect to the database, in the event of a connection loss. But I think that was changed in modern versions ...