Search found 12 matches

by DPStano
16.06.2017, 12:42
Forum: ZeosLib 7.2 Betatest Forum
Topic: EStringListError inside ConstructURL
Replies: 5
Views: 150

Re: EStringListError inside ConstructURL

TZDriverManager as global object has to be threadsafe so all access to its private members has to be locked by some Lock TCriticalSection or some Mutex i'd remove private FURL and add it as var in ConstructURL, ResolveDatabaseUrl, ResolveDatabaseUrl FDrivers should not change during program runtime ...
by DPStano
16.05.2017, 11:20
Forum: ZeosLib 7.2 Betatest Forum
Topic: EStringListError inside ConstructURL
Replies: 5
Views: 150

Re: EStringListError inside ConstructURL

it caused by calling Connect in thread maybe DriverManager should be protected by mutex or FURL should be method var or something like that
by DPStano
16.05.2017, 07:28
Forum: ZeosLib 7.2 Betatest Forum
Topic: Wrong logging statements order, missing unprepare
Replies: 5
Views: 104

Re: Wrong logging statements order, missing unprepare

commit logged before execute prepared statement commit is logged at https://github.com/svn2github/ZeosLib/blob/6955acfe78e46bc0b7752b602fdcf7b6560750f7/trunk/src/dbc/ZDbcInterbase6Statement.pas#L367 but execute prepared is logged two lines after https://github.com/svn2github/ZeosLib/blob/6955acfe78e...
by DPStano
16.05.2017, 07:24
Forum: ZeosLib 7.2 Betatest Forum
Topic: Wrong logging statements order, missing unprepare
Replies: 5
Views: 104

Re: Wrong logging statements order, missing unprepare

when it comes unprepare statement prepare statement is loged as https://github.com/svn2github/ZeosLib/blob/6955acfe78e46bc0b7752b602fdcf7b6560750f7/trunk/src/dbc/ZDbcStatement.pas#L2243 but when you look at unprepare its not loged at all https://github.com/svn2github/ZeosLib/blob/6955acfe78e46bc0b77...
by DPStano
16.05.2017, 07:17
Forum: ZeosLib 7.2 Betatest Forum
Topic: Wrong logging statements order, missing unprepare
Replies: 5
Views: 104

Re: Wrong logging statements order, missing unprepare

i forgot DB is firebird with 10+ active connections so i have 10 active transactions with 100 query/min, error queries are logged but is't a bit problematic to find out transactions when some db deadlock/error happen or even filter queries by connection when multiple similar queries are logged at sa...
by DPStano
10.05.2017, 08:54
Forum: ZeosLib 7.2 Betatest Forum
Topic: Wrong logging statements order, missing unprepare
Replies: 5
Views: 104

Wrong logging statements order, missing unprepare

Transaction Commit is logged before Execute Statement and Unprepare Statement is not logged at all and there should be transaction handle/id for each statements ... its really weird when i have 10 connections and can't identify which transaction run which query
by DPStano
10.05.2017, 08:02
Forum: ZeosLib 7.2 Betatest Forum
Topic: EStringListError inside ConstructURL
Replies: 5
Views: 150

EStringListError inside ConstructURL

I'm getting this error callstack from multiple users anyone have idea whats wrong, connect is called in thread, each thread has own connection Delphi 2009 EStringListError: List index out of bounds (1) Classes: 0 TStringList.Get Classes: 0 TStrings.Error Classes: 0 TStringList.Get Classes: 0 TString...
by DPStano
09.11.2016, 11:28
Forum: Off Topic
Topic: GitHub
Replies: 1
Views: 266

GitHub

Any plans move project to GitHub ppl could more easily report bugs and contribute
by DPStano
18.10.2016, 13:05
Forum: ZeosLib 7.2 Betatest Forum
Topic: [Q] Connection lost during post
Replies: 1
Views: 132

[Q] Connection lost during post

just want to to know how to properly handle that situation when there is connection error during applyupdates call, I thought that i can catch error reconnect and apply updates again but reconnect will close all datasets Edit: I can create helper to prevent dataset closing procedure TZConnectionHelp...
by DPStano
20.07.2016, 12:46
Forum: ZeosLib 7.2 Betatest Forum
Topic: Feature request detect dataset changes
Replies: 1
Views: 159

Feature request detect dataset changes

imagine that you make query like 'SELECT author from authors where author = 'Foo''; // Modified and PendingUpdates is False now call dataset.fieldbyName('author').asString = 'Foo' // Modified and PendingUpdates is True now and when you call dataset.Post-> it will produce no query, it would be nice t...
by DPStano
18.07.2016, 08:06
Forum: ZeosLib 7.2 Betatest Forum
Topic: log lcUnprepStmt
Replies: 0
Views: 127

log lcUnprepStmt

procedure TZAbstractPreparedStatement.Prepare; begin DriverManager.LogMessage(lcPrepStmt,Self); PrepareInParameters; FPrepared := True; end; procedure TZAbstractPreparedStatement.Unprepare; begin if Assigned(FOpenResultSet) then begin IZResultSet(FOpenResultSet).Close; FOpenResultSet := nil; end; U...
by DPStano
19.05.2016, 23:04
Forum: ZeosLib 7.2 Betatest Forum
Topic: [Q] CloneCursor
Replies: 1
Views: 168

[Q] CloneCursor


Go to advanced search