Search found 263 matches

by Fr0sT
07.11.2019, 13:47
Forum: ZeosLib 7.2 Forum
Topic: ZConnection - force a complete reload of database libraries
Replies: 54
Views: 3141

Re: ZConnection - force a complete reload of database libraries

Congratulations! )))
The function could be deprecated but many people tend to stick to older versions (I've seen pretty much guys still using Firebird 1.5!) so in Zeos we'll have to support even the most ancient pieces of a mammoth's sh*t.
by Fr0sT
07.11.2019, 11:39
Forum: ZeosLib 7.2 Forum
Topic: ZConnection - force a complete reload of database libraries
Replies: 54
Views: 3141

Re: ZConnection - force a complete reload of database libraries

I've little knowledge on MySQL but pid hardly could be 0, I guess you should first get the right value with mysql_thread_id() (according to docs). Moreover the function returns a result, maybe it could shed some light.
by Fr0sT
06.11.2019, 10:13
Forum: ZeosLib 7.2 Forum
Topic: ZConnection - force a complete reload of database libraries
Replies: 54
Views: 3141

Re: ZConnection - force a complete reload of database libraries

Yep. FB has cancelling as well though I've never used it. As for the fact the functions were commented out, I guess nobody have touched them until this time :mrgreen: . I think this should be a general method implemented for all drivers just like PingServer. But for now you can implement the method ...
by Fr0sT
06.11.2019, 09:23
Forum: ZeosLib 7.2 Forum
Topic: ZConnection - force a complete reload of database libraries
Replies: 54
Views: 3141

Re: ZConnection - force a complete reload of database libraries

Suspending a thread from outside is deprecated and non-reliable. I'm sure this kind of stuff should not go to prod/release versions.
by Fr0sT
05.11.2019, 17:02
Forum: ZeosLib 7.2 Forum
Topic: ZConnection - force a complete reload of database libraries
Replies: 54
Views: 3141

Re: ZConnection - force a complete reload of database libraries

Well, cancelling a current operation should exist in some form for all drivers. Cancelling a connect is more complicated though... Anyway I don't think you'll achieve what you want by unloading libs. There could exist some internally allocated variables which won't be disposed on thread termination ...
by Fr0sT
05.11.2019, 12:44
Forum: ZeosLib 7.2 Forum
Topic: ZConnection - force a complete reload of database libraries
Replies: 54
Views: 3141

Re: ZConnection - force a complete reload of database libraries

Ah, I thought you're talking about threaded BLOB loading only :) Well, terminating a thread is always a very bad practice and should be used only as extreme measure. I'd recommend trying API functions for that, f.ex. for MySQL functions like mysql_kill() / mysql_query() with KILL stmt; connect-stage...
by Fr0sT
05.11.2019, 08:35
Forum: ZeosLib 7.2 Forum
Topic: ZConnection - force a complete reload of database libraries
Replies: 54
Views: 3141

Re: ZConnection - force a complete reload of database libraries

When you call WinAPI TerminateThread, you just halt the Execute method but nothing prevents thread destructor or any other method from running. So just dispose all objects you created there.
by Fr0sT
10.09.2019, 07:58
Forum: MySQL
Topic: Big problem when updating '0'-values on DB field DECIMAL(14,6)
Replies: 6
Views: 943

Re: Big problem when updating '0'-values on DB field DECIMAL(14,6)

CodeTyphon is nothing more than pre-configured Lazarus in fact
by Fr0sT
09.09.2019, 13:18
Forum: Lazarus / Freepascal
Topic: Sequence von Firebird 3 und Firebird 4
Replies: 8
Views: 673

Re: Sequence von Firebird 3 und Firebird 4

Hello Fr0st, you are absolutely right. I am just not sure, if we have all the support in Zeos we would need for that: - A GenericCachedResolver, that generates statemens using the returning clause, when possible - a way for the generic resolver to get the changed values into a (Cached)ResultSet ups...
by Fr0sT
06.09.2019, 16:01
Forum: Lazarus / Freepascal
Topic: Sequence von Firebird 3 und Firebird 4
Replies: 8
Views: 673

Re: Sequence von Firebird 3 und Firebird 4

Isn't that possible with RETURNING clause?
by Fr0sT
24.07.2019, 08:30
Forum: ZeosLib 7.2 Forum
Topic: New fiture request: ZQuery OnProgress event
Replies: 6
Views: 414

Re: New fiture request: ZQuery OnProgress event

Pretty nice idea! Some more ideas: - call event with currentrow/rowcount parameters - add Cancel flag as well (though it should be carefully checked!) - add a field / option to fire only on N-th iteration (nevertheless, I doubt that firing for every row will slow things down too much for usual cases...
by Fr0sT
06.03.2019, 08:22
Forum: ZeosLib 7.2 Forum
Topic: Formless application shutdown delay
Replies: 5
Views: 947

Re: Formless application shutdown delay

Wow... :shock: I wish everyone reported issues so thoroughly! My respects
by Fr0sT
25.02.2019, 08:23
Forum: ZeosLib 7.3/8.0 Forum
Topic: Delphi 10.3Rio to Firebird - lang problem
Replies: 2
Views: 1103

Re: Delphi 10.3Rio to Firebird - lang problem

I guess where you said 1251 should be 1250 cause 1251 is Cyrillic that doesn't have Polish symbols. But anyway check again you haven't confused them
by Fr0sT
19.02.2019, 08:37
Forum: ZeosLib 7.3/8.0 Forum
Topic: Zeos 7.3 testers-thread
Replies: 286
Views: 49412

Re: Zeos 7.3 testers-thread

Adaptation to Nextgen compiler is in progress, you can see numerous IFDEF NEXTGEN here and there
by Fr0sT
15.02.2019, 23:16
Forum: ZeosLib 7.2 Forum
Topic: Bug in TZDefaultIdentifierConvertor.GetIdentifierCase?
Replies: 25
Views: 2844

Re: Bug in TZDefaultIdentifierConvertor.GetIdentifierCase?

From what you said, you have your "boolean" char(1) without any explicit codepage. Hence it's utf8 too. One Utf8 char could occupy up to 4 bytes. Even in FB itself the maximum length of UTF8 VARCHAR is 8k chars while ANSI encoded field could take 32k. So the field size is correct in terms ...