Re: [Firebird-devel] Should CRC32 function be part of HASH?

2020-08-17 Thread Alex Peshkoff via Firebird-devel
On 2020-08-10 20:13, Dimitry Sibiryakov wrote: 10.08.2020 18:58, Vlad Khorsun wrote: To summarize - I withdraw my initial agreement to add CRC32 calculation to function HASH(). The only argument for this is same name in plain english for different purpose things.    Very good, thanks.   Sho

Re: [Firebird-devel] Should CRC32 function be part of HASH?

2020-08-17 Thread Dimitry Sibiryakov
17.08.2020 13:49, Alex Peshkoff via Firebird-devel wrote: HASH(value USING alg) returning integer smallint for crc16, integer for legacy, crc32 and crc32c, bigint for crc64 and int128 for md5. -- WBR, SD. Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/list

Re: [Firebird-devel] Should CRC32 function be part of HASH?

2020-08-17 Thread Alex Peshkoff via Firebird-devel
On 2020-08-17 14:57, Dimitry Sibiryakov wrote: 17.08.2020 13:49, Alex Peshkoff via Firebird-devel wrote: HASH(value USING alg) returning integer   smallint for crc16, integer for legacy, crc32 and crc32c, bigint for crc64 Yes, I've meant that it will be some kind of integer, depending upon

Re: [Firebird-devel] Should CRC32 function be part of HASH?

2020-08-17 Thread Dimitry Sibiryakov
17.08.2020 15:56, Alex Peshkoff via Firebird-devel wrote: md128 is crypt hash (certainly deprecated), but that's not a reason to have it here I don't know about md128, but result of md5 is certainly 128 bits integer. And nothing prevent us from having it in both functions (with a warning if

Re: [Firebird-devel] ../examples/include/example.h

2020-08-17 Thread Paul Reeves
It appears that I was looking at an older version of the api examples. How I did that, I do not know, but the error quickly became obvious once I started to prepare commiting the makefile for the deprecated api. Example.h does not need to be changed. On Thu, 13 Aug 2020 13:59:21 +0300 Alex P

[Firebird-devel] OO API examples for Object Pascal

2020-08-17 Thread Paul Reeves
I thought I would port the OO API examples to Object Pascal. After all, they are quite simple, so how hard could it be? In fact it is more difficult than I thought and I am not happy with the results. I've done two examples - update and select - and I would like to commit them but before doing s

Re: [Firebird-devel] ../examples/include/example.h

2020-08-17 Thread Alex Peshkoff via Firebird-devel
On 2020-08-17 18:07, Paul Reeves wrote: It appears that I was looking at an older version of the api examples. How I did that, I do not know, really strange - taking into an account that last change was many years ago. but the error quickly became obvious once I started to prepare commiting t

Re: [Firebird-devel] OO API examples for Object Pascal

2020-08-17 Thread Alex Peshkoff via Firebird-devel
On 2020-08-17 18:25, Paul Reeves wrote: I thought I would port the OO API examples to Object Pascal. After all, they are quite simple, so how hard could it be? In fact it is more difficult than I thought and I am not happy with the results. I've done two examples - update and select - and I woul

Re: [Firebird-devel] OO API examples for Object Pascal

2020-08-17 Thread Vlad Khorsun
17.08.2020 18:25, Paul Reeves wrote: I thought I would port the OO API examples to Object Pascal. After all, they are quite simple, so how hard could it be? In fact it is more difficult than I thought and I am not happy with the results. I've done two examples - update and select - and I would

Re: [Firebird-devel] OO API examples for Object Pascal

2020-08-17 Thread Paul Reeves
On Mon, 17 Aug 2020 18:38:50 +0300 Alex Peshkoff via Firebird-devel wrote: > > First of all I'd like to see 2 new examples. Just to know what problems do > we discuss. I could either create a separate branch or I could just add them directly to a new sub-dir under examples in main. They have no

Re: [Firebird-devel] OO API examples for Object Pascal

2020-08-17 Thread Paul Reeves
On Mon, 17 Aug 2020 18:42:59 +0300 Vlad Khorsun wrote: > >VCL is overkill of course. We should avoid such dependencies in general > samples. Some thin wrappers\helper classes could be very good to have as > part of Pascal API. > Obviously the 'Visual' part of the VCL is overkill. :-) Actu

Re: [Firebird-devel] OO API examples for Object Pascal

2020-08-17 Thread Adriano dos Santos Fernandes
On 17/08/2020 12:25, Paul Reeves wrote: > > I thought I would port the OO API examples to Object Pascal. After all, they > are quite simple, so how hard could it be? > > In fact it is more difficult than I thought and I am not happy with the > results. I've done two examples - update and select -

Re: [Firebird-devel] OO API examples for Object Pascal

2020-08-17 Thread Adriano dos Santos Fernandes
On 17/08/2020 12:38, Alex Peshkoff via Firebird-devel wrote: > > Must say that when writing c++ examples I specially avoided "too good" > c++ programming practice (starting with no RAII holders in examples), > but that was due to desire not to make them more or less usable for > people who need o