Search found 164 matches
- 05.02.2010, 08:12
- Forum: ZeosLib 7.0 Beta Forum
- Topic: [bug_fixed] AV when PostgreSQL server connection lost
- Replies: 18
- Views: 1785
- 04.02.2010, 08:35
- Forum: ZeosLib 7.0 Beta Forum
- Topic: [bug_fixed] AV when PostgreSQL server connection lost
- Replies: 18
- Views: 1785
- 03.02.2010, 14:37
- Forum: Off Topic
- Topic: Happy Birthday Mdaems
- Replies: 3
- Views: 23705
- 02.02.2010, 22:31
- Forum: ZeosLib 7.0 Beta Forum
- Topic: [bug_fixed] AV when PostgreSQL server connection lost
- Replies: 18
- Views: 1785
trupka, thank you for your answer. Oh, definitely should be, for internal libpq cleanup. Postgres documentation is quite clear about that. I have no doubt PlainDriver.Finish(Handle) should be called. I'm just not sure if it should be called in CheckPostgreSQLError. As handle is a property of connect...
- 01.02.2010, 20:26
- Forum: ZeosLib 7.0 Beta Forum
- Topic: [bug_fixed] AV when PostgreSQL server connection lost
- Replies: 18
- Views: 1785
Patches
I removed FHandle from Statement Classes. Handle is retrieved using GetConnectionHandle procedure. I think storing connection handle in every statement was wrong.
- 01.02.2010, 20:23
- Forum: ZeosLib 7.0 Beta Forum
- Topic: [bug_fixed] AV when PostgreSQL server connection lost
- Replies: 18
- Views: 1785
patches
Hello, I upload patches: 1. I removed the connection closing code from CheckPostgreSQLError as this is not in place (imho). Connection is finished when tconnection closes. Also I check if connection is active to know if rollback should be attempted. I removed the var directive from Handle parameter....
- 31.01.2010, 14:20
- Forum: ZeosLib 7.0 Beta Forum
- Topic: [bug_fixed] AV when PostgreSQL server connection lost
- Replies: 18
- Views: 1785
Hello to all I'd like to share some notices about the patch. It works OK if connection is used for single dataset object. That way on exception it frees the connection on pqlib and on statement. The only problem of that is that if someone tries to ExecSql statement with Handle=nil there is no except...
- 31.01.2010, 11:57
- Forum: 6.6 - stable
- Topic: Dealing with exceptions in Postgresql implementation
- Replies: 2
- Views: 424
- 28.01.2010, 16:13
- Forum: 6.6 - stable
- Topic: Dealing with exceptions in Postgresql implementation
- Replies: 2
- Views: 424
Dealing with exceptions in Postgresql implementation
Hello I'm using postgresql and zeos lib v6.6.6. I noticed that if the connection is lost the exception about that is raised. After that even closing the program generates access violations. I doubt this is normal way of dealing with broken connections :) I guess the source of all evil is CheckPostgr...
- 25.01.2010, 09:48
- Forum: 6.6 - stable
- Topic: Multiple threds accessing single TZquery object
- Replies: 3
- Views: 661
Guess I was too quick to be happy. :( Maybe I have to create a separate TZConnection for every thread? 2010-01-25 08:54:40 - Event XML parsing error: Access violation at address 0192E459 in module 'LIBEAY32.dll'. Read of address BDA9968C 2010-01-25 08:54:40 - EventServer: Disonnected 192.168.7.201 :...
- 25.01.2010, 07:10
- Forum: 6.6 - stable
- Topic: Multiple threds accessing single TZquery object
- Replies: 3
- Views: 661
Multiple threds accessing single TZquery object
Hello, recently I've been developing application witch is listening for some port ( TIdTCPServer indy component), getting XML and updating DB according to the XML. For that I created 1 query object that I would pass SQL to. Also I'm using timer to check if there are changes in DB from time to time (...
- 18.01.2010, 08:53
- Forum: User Contributions
- Topic: PostgreSQL cast using ::
- Replies: 6
- Views: 2384
Hello, ezemasa What I wanted to ask is: for example in postgresql 8.9 operator : appears. In pgAdmin you will write SELECT column:something FROM table. Now in TZQuery we would write SELECT column::something FROM table, as :: is converted to : . How would this query look like after applying your patc...
- 15.01.2010, 16:08
- Forum: User Contributions
- Topic: PostgreSQL cast using ::
- Replies: 6
- Views: 2384
- 15.01.2010, 08:30
- Forum: User Contributions
- Topic: PostgreSQL cast using ::
- Replies: 6
- Views: 2384
- 07.01.2010, 16:12
- Forum: PostgreSQL
- Topic: Transaction Isolation Level
- Replies: 5
- Views: 4120
Yes - that does the trick. Setting transaction isolation level to tiReadCommited starts the new transaction, then Commit commits it and starts another one, setting to tiNone - cancels the transaction. So in fact instead of 1 transaction you create 2 - the second of them ends as soon as it starts. No...