Search found 27 matches

by serbod
22.09.2020, 13:14
Forum: ZeosLib 7.2 Forum
Topic: potential critical crash in ZDbcCachedResultSet.pas
Replies: 15
Views: 1395

Re: potential critical crash in ZDbcCachedResultSet.pas

Simple example attached.

Multiple TZConnections to same base doesn't works.
by serbod
22.09.2020, 12:22
Forum: ZeosLib 7.2 Forum
Topic: potential critical crash in ZDbcCachedResultSet.pas
Replies: 15
Views: 1395

Re: potential critical crash in ZDbcCachedResultSet.pas

I was able to create working example application, that reproduce error in short time (about 5 minutes). And got detailed stacktrace: TZRowAccessor.CheckColumnConvertion(???,???) TZRowAccessor.IsNull(1) TZGenericCachedResolver.FormWhereClause($3F9976C,$3F4EE28) TZGenericCachedResolver.FormUpdateState...
by serbod
21.09.2020, 07:55
Forum: ZeosLib 7.2 Forum
Topic: potential critical crash in ZDbcCachedResultSet.pas
Replies: 15
Views: 1395

Re: potential critical crash in ZDbcCachedResultSet.pas

After adding simple check to prevent 'out of range' exception if (FInitialRowsList.Count > 0) and (FCurrentRowsList.Count > 0) then got feedback with bit different stacktrace 15:58:07.754 ERROR [00619029] ZAbstractDataset.TZAbstractDataset.InternalUpdate (Line 388, "..\..\src\component\ZAbstrac...
by serbod
28.05.2020, 09:46
Forum: ZeosLib 7.2 Forum
Topic: potential critical crash in ZDbcCachedResultSet.pas
Replies: 15
Views: 1395

Re: potential critical crash in ZDbcCachedResultSet.pas

I guess you know the location where the exception is raised. What I would do it to wrap that block around in a Try ... Except block and then log as much information as I can to identify the situation before re-raising the exception. Dump record IDs, internal component states and everything else wha...
by serbod
08.05.2020, 12:49
Forum: ZeosLib 7.2 Forum
Topic: potential critical crash in ZDbcCachedResultSet.pas
Replies: 15
Views: 1395

Re: potential critical crash in ZDbcCachedResultSet.pas

Due to security restriction, I do not have access to that server.
Screenshot from log file (will be discarded in 30 days):

Image
by serbod
06.05.2020, 11:24
Forum: ZeosLib 7.2 Forum
Topic: potential critical crash in ZDbcCachedResultSet.pas
Replies: 15
Views: 1395

Re: potential critical crash in ZDbcCachedResultSet.pas

do you have an example where FInitialRowsList is empty and that code can be reached?
It's from logs on production server without debugging, occuring sometimes. Can't reproduce.
by serbod
23.01.2020, 10:36
Forum: ZeosLib 7.2 Forum
Topic: potential critical crash in ZDbcCachedResultSet.pas
Replies: 15
Views: 1395

potential critical crash in ZDbcCachedResultSet.pas

In methods: TZAbstractCachedResultSet.InsertRow TZAbstractCachedResultSet.UpdateRow TZAbstractCachedResultSet.DeleteRow in "except" block used very unsafe code, that cause crash in some time: FRowsList[RowNo - 1] := FInitialRowsList[FInitialRowsList.Count - 1]; if FInitialRowsList.Count re...
by serbod
08.02.2017, 07:39
Forum: ZeosLib 7.2 Forum
Topic: TZCachedResultSet - Read-only unidirectional
Replies: 3
Views: 529

Re: TZCachedResultSet - Read-only unidirectional

Sorry, I write to wrong thread, my zeosdbo version is 7.1.4 (stable)

I need to disable cashing of whole result table. It impossible for TZCachedResultSet, by design. It use TList for every result record with RowNum as index. And rcReadOnly and rtForwardOnly do not change that behavior.
by serbod
03.02.2017, 11:06
Forum: ZeosLib 7.2 Forum
Topic: TZCachedResultSet - Read-only unidirectional
Replies: 3
Views: 529

TZCachedResultSet - Read-only unidirectional

TZCachedResultSet is not optimized for read-only unidirectinal access, so it not applicable to very large (millions rows) results. And it only ResultSet for some database types (SQLite, MySQL, PostgreSQL). I suggest some tweaks: unit ZDbcCachedResultSet; TZAbstractCachedResultSet = class (TZAbstract...
by serbod
04.03.2014, 04:28
Forum: Off Topic
Topic: Need help in getting job in EU
Replies: 0
Views: 23606

Need help in getting job in EU

I'm from Russia and our president is fucking crazy. There no good chance, that he can be overthrown, for one oppositioner is 3-5 loyalist. Our region is depressive, but it quickly become worse. Situation become dangerously now for me and my family. Please, give me some direction, where in EU i can f...
by serbod
03.10.2013, 13:45
Forum: ZeosLib 7.1 stable Forum
Topic: ZeosLib 7.1 testers-thread
Replies: 168
Views: 63152

Re: ZeosLib 7.1 testers-thread

I successfully used Zeos from development branch (2013-03-05) on Ubuntu Linux 13.04 and 12.04 (x86) with Oracle instant client. compiled with Lazarus 1.0.10, 1.1; FPC 2.6.0, 2.6.2, 2.7.1; under VirtualBox 4.2 @miab3, you can use VirtualBox for testing on different OS - it very simple and handy. It a...
by serbod
02.10.2013, 08:13
Forum: ZeosLib 7.1 stable Forum
Topic: ZeosLib 7.1 testers-thread
Replies: 168
Views: 63152

Re: ZeosLib 7.1 testers-thread

svn://svn.code.sf.net/p/zeoslib/code-0 (commit number 2772) ZAbstractDataset.pas: 524 BM := Bookmark; // cause type error in FPC 2.6.3 if BookmarkValid({$IFDEF WITH_TBOOKMARK}BM{$ELSE}@BM{$ENDIF}) Then begin InternalGotoBookmark({$IFDEF WITH_TBOOKMARK}BM{$ELSE}@BM{$ENDIF}); Resync([rmExact, rmCenter...
by serbod
03.09.2013, 14:56
Forum: ZeosLib 7.1 stable Forum
Topic: [patch_done] Oracle - stored procedures packages
Replies: 17
Views: 5810

Re: [patch_done] Oracle - stored procedures packages

Unexpected problem - metadata request for packaged stored procedure gets parameters for all procedures with similar names. We have procedures: some_pkg.some_proc( param_a ) some_pkg.some_proc_one( param_a, param_b ) some_pkg.some_proc_two( param_c ) When we do StoredProcedureName:='some_pkg.some_pro...
by serbod
03.07.2013, 11:55
Forum: ZeosLib 7.1 stable Forum
Topic: [patch_done] Oracle - stored procedures packages
Replies: 17
Views: 5810

It's working now! Thank you!
by serbod
02.07.2013, 12:10
Forum: ZeosLib 7.1 stable Forum
Topic: [patch_done] Oracle - stored procedures packages
Replies: 17
Views: 5810

serbod , Oracle supports Procedure-Overloads. Can you provide a little example how to call such a overloaded procedure-name? Sorry, we don't have such procedures in our projects. I try to convince our DBA create one for testing. UPD: DBA says, that TZSQLProcessor with Oracle reporting some error ab...