[Firebird-devel] Non-ascii user names in SRP

2020-11-02 Thread Dimitry Sibiryakov
Hello All. In current Firebird 4 I try following: C:\Programs\Firebird\Firebird4>chcp 1251 Active code page: 1251 C:\Programs\Firebird\Firebird4>isql security4.fdb -u sysdba -ch win1251 Database: security4.fdb, User: SYSDBA SQL> create user "абв" password 'где'; SQL> commit; SQL> select plg$

Re: [Firebird-devel] Firebird 4 database creation speed

2020-10-20 Thread Dimitry Sibiryakov
20.10.2020 15:29, Alex Peshkoff via Firebird-devel wrote: I see no difference. Ah, ok. Perhaps I got fooled by brute force protection that delay every third authentication attempt. -- WBR, SD. Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/f

Re: [Firebird-devel] Firebird 4 database creation speed

2020-10-19 Thread Dimitry Sibiryakov
19.10.2020 19:09, Dimitry Sibiryakov wrote: the time between the command has been issued and the error is shown. And if you didn't notice: firebird.conf is default which means that legacy auth is disabled on server side. I though that in this case client and server must negotiate

Re: [Firebird-devel] Firebird 4 database creation speed

2020-10-19 Thread Dimitry Sibiryakov
19.10.2020 18:51, Alex Peshkoff via Firebird-devel wrote: Because in default case one gets something like (no users at all): The question was not about error I got (it was the same in both cases) but about the time between the command has been issued and the error is shown. -- WBR, SD.

[Firebird-devel] [FB-Tracker] Created: (CORE-6422) Database key holder is not used by default for backup file

2020-10-19 Thread Dimitry Sibiryakov (JIRA)
Components: Engine Affects Versions: 4.0 Beta 2 Reporter: Dimitry Sibiryakov Priority: Minor When backup of encrypted database is performed via services it uses crypt plugin of the database for backup file but not keyholder. The database/global keyholder must be used in

[Firebird-devel] Firebird 4 database creation speed

2020-10-19 Thread Dimitry Sibiryakov
Hello All. With current Firebird 4 snapshot with default firebird.conf (legacy auth disabled) and no Srp SYSDBA user, the query create database "localhost:crypt_test" user "SYSDBA" password "masterke"; is much slower than create database "localhost:crypt_test" user "SYSDBA" password "mas

[Firebird-devel] [FB-Tracker] Created: (CORE-6418) Firebird server cannot be shutdown after user application crash in db crypt key callback

2020-10-15 Thread Dimitry Sibiryakov (JIRA)
Project: Firebird Core Issue Type: Bug Components: Engine Affects Versions: 4.0 Beta 2 Environment: Windows, Firebird server run as application Reporter: Dimitry Sibiryakov Priority: Minor After client application has crashed trying to use

Re: [Firebird-devel] Official Docker Images of Firebird

2020-10-15 Thread Dimitry Sibiryakov
15.10.2020 11:57, marius adrian popa wrote: cmake is kind of standard for cross platform builds win/lin/mac flamerobin switched to cmake also microsoft seems that is pushing it https://docs.microsoft.com/en-us/cpp/build/cmake-projects-in-visual-studio It can become viable if MSVS IDE is able

Re: [Firebird-devel] FB 4.0 Beta 2: 902 consistency

2020-10-13 Thread Dimitry Sibiryakov
13.10.2020 15:10, Pro Turm wrote: Could anybody explain the reason for the error above ? This database was created with previous beta version. In unstable branch such things happen. -- WBR, SD. Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/

Re: [Firebird-devel] Firebird DSQL parser and parser generator

2020-10-13 Thread Dimitry Sibiryakov
13.10.2020 05:15, Arily Essen via Firebird-devel wrote: - Are you satisfied with the current situation of the DSQL parser and its generator? Are there particularly sore points in its maintenance? Perhaps you have a longstanding mental list of how things could be improved there? I'm not in co

Re: [Firebird-devel] sqllen for TZ types

2020-10-08 Thread Dimitry Sibiryakov
07.10.2020 17:27, Dimitry Sibiryakov wrote: Is it ok that sqllen for SQL_TIMESTAMP_TZ is 12 instead of 10 and 8 for SQL_TIME_TZ instead of 6? C++ allows structure padding but leave its size to be implementation defined. It means that Firebird 4 database may have similar cross-platform

[Firebird-devel] sqllen for TZ types

2020-10-07 Thread Dimitry Sibiryakov
Hello All. Is it ok that sqllen for SQL_TIMESTAMP_TZ is 12 instead of 10 and 8 for SQL_TIME_TZ instead of 6? -- WBR, SD. Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel

Re: [Firebird-devel] Compile Firebird on Windows

2020-10-04 Thread Dimitry Sibiryakov
02.10.2020 21:27, Felipe Kopp Jaekel wrote: Any ideas? It looks like you don't have GNU toolset in PATH. Particularly sed. -- WBR, SD. Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel

Re: [Firebird-devel] PSQL profiler

2020-09-28 Thread Dimitry Sibiryakov
28.09.2020 02:11, Adriano dos Santos Fernandes wrote: Here is link to pull request, starting with the README describing the feature What is performance impact of this feature on attachments that do not profiling? -- WBR, SD. Firebird-Devel mailing list, web interface at https://lists.s

Re: [Firebird-devel] Replica mode

2020-09-25 Thread Dimitry Sibiryakov
25.09.2020 10:10, Dmitry Yemanov wrote: 25.09.2020 01:08, Dimitry Sibiryakov wrote: Is impossibility to use IReplicator interface the only practical difference between REPLICA_NONE and REPLICA_READ_WRITE modes? Currently, yes (IIRC). Although there may be others in the future, I suspect

[Firebird-devel] Replica mode

2020-09-24 Thread Dimitry Sibiryakov
Hello All. Is impossibility to use IReplicator interface the only practical difference between REPLICA_NONE and REPLICA_READ_WRITE modes? -- WBR, SD. Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel

Re: [Firebird-devel] Cancel isc_attach_database Before Timeout?

2020-09-21 Thread Dimitry Sibiryakov
21.09.2020 18:03, Alex Peshkoff via Firebird-devel wrote: The most intresting for us - it's closing all opened sockets (suppose for non-TCP clients something similiar is done). As the result all I/O waits on them are finished at once, therefore if isc_attach_database() was waiting for reply from

Re: [Firebird-devel] Cancel isc_attach_database Before Timeout?

2020-09-21 Thread Dimitry Sibiryakov
21.09.2020 17:28, Scott Morgan via Firebird-devel wrote: Not as such, but it's relying on undefined behaviour (exiting an app whilst worker threads are still active) On Windows it is defined behavior. Call to ExitProcess() made by default RTL will terminate all other threads. On Linux it

Re: [Firebird-devel] Cancel isc_attach_database Before Timeout?

2020-09-21 Thread Dimitry Sibiryakov
21.09.2020 15:15, Scott Morgan via Firebird-devel wrote: On 21/09/2020 13:52, Dimitry Sibiryakov wrote:   fb_cancel_operation(fb_cancel_abort) in ordinary cases, I assume you just pass NULL as the DB connection. I'm sorry, I was wrong. -- WBR, SD. Firebird-Devel mailing list

Re: [Firebird-devel] Cancel isc_attach_database Before Timeout?

2020-09-21 Thread Dimitry Sibiryakov
21.09.2020 13:14, Scott Morgan via Firebird-devel wrote: So, to be safe, is there a way to cancel the isc_attach_database call? fb_cancel_operation(fb_cancel_abort) in ordinary cases, fb_shutdown() before application exit. -- WBR, SD. Firebird-Devel mailing list, web interface at http

Re: [Firebird-devel] Record format

2020-09-17 Thread Dimitry Sibiryakov
17.09.2020 20:45, Dmitry Yemanov wrote: You'd better start this thread with the problem you're willing to solve that way. I like IReplicator interface but I have a couple of doubts about the buffer format it accepts so I'm thinking about an other format that would be a) compact, b) self-de

[Firebird-devel] Record format

2020-09-16 Thread Dimitry Sibiryakov
Hello All. A long time ago there were talks about a new record format: self-descriptive, length encoded. Do anybody still sleep on it? -- WBR, SD. Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel

[Firebird-devel] Logging of warnings

2020-09-10 Thread Dimitry Sibiryakov
Hello All. If IStatus contains only warnings as the result of setWarnings() call then using iscLogStatus() for it produces message containing "unknown ISC error 0" because mergeStatus() put it there. Is it expected and desired behavior? -- WBR, SD. Firebird-Devel mailing list, web i

Re: [Firebird-devel] Double update replication

2020-09-08 Thread Dimitry Sibiryakov
08.09.2020 17:52, Dimitry Sibiryakov wrote: I'm puzzled with output my sample replication plugin produces. For single record update I see in its log the following: Nevermind, that's my fault. I really have in the table two similar records. -- WBR, SD. Firebird-Devel mailing

[Firebird-devel] Double update replication

2020-09-08 Thread Dimitry Sibiryakov
Hello All. I'm puzzled with output my sample replication plugin produces. For single record update I see in its log the following: 00516f80Transaction started 00516f80startSavepoint() 00516f80startSavepoint() 00516f80Update T

[Firebird-devel] REPL_trans_prepare()

2020-09-08 Thread Dimitry Sibiryakov
Hello All. I cannot see where REPL_trans_prepare() is called. What do I miss? -- WBR, SD. Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel

Re: [Firebird-devel] Problem with exception message and OCTETS.

2020-09-07 Thread Dimitry Sibiryakov
07.09.2020 15:19, Alex Peshkoff via Firebird-devel wrote: May be something more generic - when we meet an expression node that casts from binary to some charset all it's children as deep as expression evaluation continues should cast to that same charset before transliterating to binary? Jus

Re: [Firebird-devel] Problem with exception message and OCTETS.

2020-09-07 Thread Dimitry Sibiryakov
07.09.2020 12:58, Alex Peshkoff via Firebird-devel wrote: The result remains almost the same: You forgot to recode the script into 1250 as well. -- WBR, SD. Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel

Re: [Firebird-devel] Problem with exception message and OCTETS.

2020-09-04 Thread Dimitry Sibiryakov
04.09.2020 12:57, Alex Peshkoff via Firebird-devel wrote: Not reproduced: You forgot "set names win1250" at the beginning of the script. -- WBR, SD. Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel

Re: [Firebird-devel] Set bind for numeric(38) for sum function

2020-09-02 Thread Dimitry Sibiryakov
02.09.2020 14:49, Alex Peshkoff via Firebird-devel wrote: You've forgotten keyword OF in SET BIND statement I wonder why parser don't throw error in this case... -- WBR, SD. Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel

[Firebird-devel] Replication table matcher

2020-09-01 Thread Dimitry Sibiryakov
Hello All. Why is the matcher created for each attachment separately? Isn't one per database enough?.. -- WBR, SD. Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel

Re: [Firebird-devel] Backup padding

2020-09-01 Thread Dimitry Sibiryakov
01.09.2020 18:24, Alex Peshkoff via Firebird-devel wrote: Can you send me problematic backup? No backup file exists. This application uses the service this way on both sides. A piece come from one server - the piece is sent to the other. I didn't try hard to reproduce it so far. -- WBR,

Re: [Firebird-devel] Backup padding

2020-09-01 Thread Dimitry Sibiryakov
01.09.2020 18:15, Alex Peshkoff via Firebird-devel wrote: And what's a  problem with it? Is database restored? Yes. Is gbak service finished? No. Application fall to endless loop on isc_service_query() waiting for data request from server. -- WBR, SD. Firebird-Devel mailing list,

[Firebird-devel] Backup padding

2020-09-01 Thread Dimitry Sibiryakov
Hello, All. In all Firebird versions up to current backup content is padded up to 512 bytes buffer size but does it have any meaning nowadays? I'm asking because this padding causes a little problem during restore from client side using services and "stdin": logical end of backup comes

Re: [Firebird-devel] Set bind for numeric(38) for sum function

2020-08-31 Thread Dimitry Sibiryakov
31.08.2020 14:28, Jiří Činčura wrote: The firebirdsql.org show Beta 2:https://snipboard.io/Rbgm7L.jpg . Windows snapshot build seems to be broken for now, use artefacts from CI: https://github.com/FirebirdSQL/firebird/actions/runs/231772533 -- WBR, SD. Firebird-Devel mailing list, web

Re: [Firebird-devel] Set bind for numeric(38) for sum function

2020-08-31 Thread Dimitry Sibiryakov
31.08.2020 14:14, Jiří Činčura wrote: SQL> show version; ISQL Version: WI-T4.0.0.1963 Firebird 4.0 Beta 2 Current version is RC1. -- WBR, SD. Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel

Re: [Firebird-devel] RFC: RDB$BLOB_UTIL system package

2020-08-23 Thread Dimitry Sibiryakov
23.08.2020 14:17, Mark Rotteveel wrote: What is your argument against making it built-in? Actually none except may be security. I don't know whether execution permissions can be granted or revoked for system packages. I just have a feeling that Oracle-compatible set of packages can be more

Re: [Firebird-devel] RFC: RDB$BLOB_UTIL system package

2020-08-23 Thread Dimitry Sibiryakov
23.08.2020 03:39, Adriano dos Santos Fernandes wrote: I have created RDB$BLOB_UTIL package pull request: AFAICS this package is based on UDR. Does it really have to be system? May be it would be better to make it optionally declarable as any other UDR: just library and SQL script. -- WBR

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

2020-08-18 Thread Dimitry Sibiryakov
18.08.2020 09:50, Simonov Denis via Firebird-devel wrote: For example, character data from char/varchar is not so easy to convert to delphi strings, given the character sets. Actually it is easy: just set character set to what you expect. For example, set it to UTF8 and use utf8String in Del

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] 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] Charset introducers

2020-08-14 Thread Dimitry Sibiryakov
14.08.2020 15:36, Mark Rotteveel wrote: b) Any character other than a in the character set identified by the set specification> or implied by “N”. """ Which also confirms that the current Firebird behaviour is correct. Unfortunately that's right. That is simple to achieve: **don't use intr

Re: [Firebird-devel] Charset introducers

2020-08-14 Thread Dimitry Sibiryakov
14.08.2020 13:56, Mark Rotteveel wrote: b) Otherwise, there shall be no between the and the set specification>, and the set of characters contained in the shall be wholly contained in the character set specified by the specification>. a) If the specifies a , then the character set specified

[Firebird-devel] Charset introducers

2020-08-14 Thread Dimitry Sibiryakov
Hello All. What SQL standard is telling about charset introducers (such as "_utf8 'abc'")? From my knowledge it can be interpreted in two ways: 1) Following byte sequence has given charset. 2) Following character sequence must be used as a string in given charset. First option resuts

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

2020-08-11 Thread Dimitry Sibiryakov
11.08.2020 17:50, Alex Peshkoff via Firebird-devel wrote: I believe that many of you are all too narrowly linking HASH and whether it is appropriate for cryptography. What about particular CRC32 - it produces output value with length just 4 bytes, even using SHA1 with 20 bytes returned was acc

Re: [Firebird-devel] Generated files in git

2020-08-11 Thread Dimitry Sibiryakov
11.08.2020 13:57, Vlad Khorsun wrote: To make it work it should be placed into not ignored by git directory.   What directory you speak about ? src/include/dir. And yes, this directory is ignored exactly as written in git docs. -- WBR, SD. Firebird-Devel mailing list, web interface

Re: [Firebird-devel] Generated files in git

2020-08-11 Thread Dimitry Sibiryakov
11.08.2020 11:37, Alex Peshkoff via Firebird-devel wrote: Getting serious - on my mind the main reason ti have it in git is to avoid breakage of pascal generator in cloop. How can it help? The file is generated (and to be kept) in the directory ignored by git. It won't be included into commi

Re: [Firebird-devel] Generated files in git

2020-08-11 Thread Dimitry Sibiryakov
10.08.2020 23:49, Adriano dos Santos Fernandes wrote: You'd better leave the file there, so people can go to github and see its latest version directly. At first, the problem is that the file is NOT there. At second it is so... autogenerated that nobody can look inside and stay alive. --

Re: [Firebird-devel] Generated files in git

2020-08-10 Thread Dimitry Sibiryakov
10.08.2020 13:24, Alex Peshkoff via Firebird-devel wrote: if some files are generated only in some specific build (i.e. others have no rules/targets/projects/etc to generate it) they are stored. Which build cannot make cloop and generate Firebird.pas now? -- WBR, SD. Firebird-Devel mail

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

2020-08-10 Thread Dimitry Sibiryakov
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. Shouldn't then HASH() to be renamed into CRYPT_HASH

[Firebird-devel] BlobWrapper and sizes

2020-08-10 Thread Dimitry Sibiryakov
Hello All. BlobWrapper::getSize() uses SLONG for total size parameter but getData() uses FB_SIZE_T for the same purpose. Shouldn't they match? -- WBR, SD. Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel

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

2020-08-10 Thread Dimitry Sibiryakov
10.08.2020 12:23, Alex Peshkoff via Firebird-devel wrote: CRC32 returns 32-bit integer. HASH(something USING method) returns varbinary of appropriate length. What should be return value of HASH(something USING CRC32)? 32 bits integer. It won't be the first function whose result depends on pa

[Firebird-devel] Firebird 4, replication of BLOBS

2020-08-06 Thread Dimitry Sibiryakov
Hello All. Is it ok that replication merge all BLOB segments into one and cannot work with BLOBs larger than 4G? -- WBR, SD. Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel

[Firebird-devel] Generated files in git

2020-08-03 Thread Dimitry Sibiryakov
Hello All. Currently some generated files are not kept in git (such as preprocessed epp and y) and some are kept (such as generated headers). What are the rules to decide if a generated file should be kept or not? -- WBR, SD. Firebird-Devel mailing list, web interface at https://lis

Re: [Firebird-devel] Warning related with memset/memcpy

2020-07-17 Thread Dimitry Sibiryakov
17.07.2020 17:35, Alex Peshkoff via Firebird-devel wrote: clearing an object of non-trivial type ‘struct Jrd::impure_value’; I'm not sure why the compiler consider impure_value to be non-trivial. Is it because of union in common or some particular members of it? I think that using switche

Re: [Firebird-devel] ENCRYPT/DECRYPT in FB4 RN

2020-07-16 Thread Dimitry Sibiryakov
16.07.2020 11:52, Jiří Činčura wrote: It's just an alias. Unfotunately yes because some parts of the engine and client API lacks support of subtypes for text fields and I was not strong enough to implement it as well. -- WBR, SD. Firebird-Devel mailing list, web interface at https://l

Re: [Firebird-devel] ENCRYPT/DECRYPT in FB4 RN

2020-07-16 Thread Dimitry Sibiryakov
16.07.2020 11:43, Jiří Činčura wrote: but in Firebird I'm (almost) sure such type does not exist. I'm sure that it exists because I implemented it. -- WBR, SD. Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel

Re: [Firebird-devel] ENCRYPT/DECRYPT in FB4 RN

2020-07-16 Thread Dimitry Sibiryakov
16.07.2020 11:19, Jiří Činčura wrote: Is the "varbinary" correct? It should be varbinary. If you found that the functions return something else - most likely it is a bug. -- WBR, SD. Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-de

Re: [Firebird-devel] Crazy about time/timestamp with timezone

2020-07-08 Thread Dimitry Sibiryakov
08.07.2020 15:32, Adriano dos Santos Fernandes wrote: I personally think TIME-TZ with regions are a valid thing (albeit weird depending on the operations) because it fills a gap where one creates a TIME and a additional region column. TIME-TZ with offsets only (no regions) does not have the weird

Re: [Firebird-devel] ibase.h

2020-06-23 Thread Dimitry Sibiryakov
23.06.2020 15:26, Adriano dos Santos Fernandes wrote: Users should not change structure of Firebird include files to make them work when they are copied in a project. Why? First of all they must not copy the files into a project. As soon as they do it, the rest is their responsibility, no

Re: [Firebird-devel] ibase.h

2020-06-23 Thread Dimitry Sibiryakov
23.06.2020 12:58, Adriano dos Santos Fernandes wrote: User is free to copy that directory to its project and put it not in an include path and include the files relative to its source. In this case they also free to copy ibase.h there. Let's not discuss clinical idiots that are able to copy

Re: [Firebird-devel] ibase.h

2020-06-23 Thread Dimitry Sibiryakov
23.06.2020 12:39, Adriano dos Santos Fernandes wrote: That is not good. It makes mandatory that user have the include directory where ibase.h is in its include path, which should not be necessary. firebird is a subdirectory for the one where ibase.h is placed. If a user writes "#include " th

Re: [Firebird-devel] Unnecessary expression evaluation?

2020-06-18 Thread Dimitry Sibiryakov
18.06.2020 18:02, Adriano dos Santos Fernandes wrote: Can this evaluation of second argument when the first is NULL still be necessary for any reason? As a minimum it can be a function with side effects. -- WBR, SD. Firebird-Devel mailing list, web interface at https://lists.sourceforge

Re: [Firebird-devel] ODP: Modern C++: constexpr

2020-06-18 Thread Dimitry Sibiryakov
18.06.2020 14:27, Mark Rotteveel wrote: Depending on the context, other usable terms to replace master could be     agency     hive     primary     conductor     captain     schemer     guide Well, I think after this censorship fb_get_primary_interface() routine can return pointer to

Re: [Firebird-devel] ODP: Modern C++: constexpr

2020-06-18 Thread Dimitry Sibiryakov
18.06.2020 13:59, Mark Rotteveel wrote: So while a master is a specific type of owner, the term owner itself does not have the same meaning as master. So we can safety replace "master/slave" with "owner/owned", right? -- WBR, SD. Firebird-Devel mailing list, web interface at https://lis

Re: [Firebird-devel] ODP: ODP: Modern C++: constexpr

2020-06-18 Thread Dimitry Sibiryakov
18.06.2020 12:12, Karol Bieniaszewski wrote: In my humble opinion this discussion is usless. Yes. But someone has too much free time because of the pandemy and this someone want to command others to do a lot of pointless work. That's the problem. -- WBR, SD. Firebird-Devel mailing list

Re: [Firebird-devel] ODP: Modern C++: constexpr

2020-06-18 Thread Dimitry Sibiryakov
18.06.2020 11:46, Molnár Attila wrote: owner : ownership is a legal term basicly. It gives the owner rights over the owned property. Yes and slaves is an usual example of such property. master : master has actual power over the slave to command/control the slave. The actual power come

Re: [Firebird-devel] ODP: Modern C++: constexpr

2020-06-18 Thread Dimitry Sibiryakov
18.06.2020 09:48, Pavel Cisar wrote: If you would be raised in Europe (especially central or eastern) in last century (or another place ruled by One Truth Owners), you would not be so surprised. 90 years passed since the last book burning. Hardly can anyone remember so the new loop can start

Re: [Firebird-devel] ODP: Modern C++: constexpr

2020-06-18 Thread Dimitry Sibiryakov
18.06.2020 10:05, Mark Rotteveel wrote:   BTW, when you start your search-and-replace work, don't forget to find substitutions for "owner", "invalid", "dependency" and "creator". First and third offend ex-slaves, second - disabled people, last - religious ones. I'm sorry, but that is just plain

Re: [Firebird-devel] ODP: Modern C++: constexpr

2020-06-17 Thread Dimitry Sibiryakov
18.06.2020 00:00, Leyne, Sean wrote: "they" is also accepted as a singular, although it seems ungrammatical. Ok, thanks. BTW, when you start your search-and-replace work, don't forget to find substitutions for "owner", "invalid", "dependency" and "creator". First and third offend ex-slave

Re: [Firebird-devel] ODP: Modern C++: constexpr

2020-06-17 Thread Dimitry Sibiryakov
17.06.2020 21:55, Mark Rotteveel wrote: the commonly accepted gender-neutral term is singular they. I don't know English well enough, sorry. What is singular for "they"? "This"..? -- WBR, SD. Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/fir

Re: [Firebird-devel] Replication terminology (was: ODP: Modern C++: constexpr

2020-06-17 Thread Dimitry Sibiryakov
17.06.2020 21:03, Leyne, Sean wrote: I think that "replica" clearly denotes that it is "controlled" Equally, "destination" clearly denotes that it is "not controlled". Fortunately FireSwarm is a multimaster system. Or should I care and rename it into peer-to-peer?.. -- WBR, SD. Firebi

Re: [Firebird-devel] Values in auth block

2020-06-17 Thread Dimitry Sibiryakov
17.06.2020 18:18, Alex Peshkoff via Firebird-devel wrote:     Auth block 2, length 80     AUTH_TYPE: USER     AUTH_NAME: SD BTW, can I rely on fact that AUTH_TYPE is always come before AUTH_NAME in the block? -- WBR, SD. Firebird-Devel mailing list, web interface at

Re: [Firebird-devel] Values in auth block

2020-06-17 Thread Dimitry Sibiryakov
17.06.2020 18:18, Alex Peshkoff via Firebird-devel wrote: Ignore and keep 'as is'. They are needed if later that block is passed once again to mapping code (after execute statement for example). Unfortunately SQLConnect() accepts only plain user name and password so ignoring them is the only

Re: [Firebird-devel] MSVS project for examples

2020-06-17 Thread Dimitry Sibiryakov
17.06.2020 18:14, Alex Peshkoff via Firebird-devel wrote: If they are OK for VS now in use - why not? ExtAuth has dependency (hardcoded include path) to TomCrypt library which is a problem out of Firebird source tree. The rest seems to be ok so far. -- WBR, SD. Firebird-Devel mailing l

[Firebird-devel] Values in auth block

2020-06-17 Thread Dimitry Sibiryakov
Hello All. In my provider I'm getting following auth block: isc_dpb_auth_block Auth block 0, length 53 AUTH_TYPE: Seen AUTH_SECURE_DB: C:\PROGRAMS\FIREBIRD\FIREBIRD4.X86\TEST Auth block 1, length 62

Re: [Firebird-devel] ODP: Modern C++: constexpr

2020-06-17 Thread Dimitry Sibiryakov
17.06.2020 17:22, Leyne, Sean wrote: If someone would help me with git, I would more than happily do it. Git have a very good documentation. Just type "git help" in command line. -- WBR, SD. Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/fireb

Re: [Firebird-devel] ODP: Modern C++: constexpr

2020-06-17 Thread Dimitry Sibiryakov
17.06.2020 17:09, Leyne, Sean wrote: Time to perform a simple search and replace!?!! Ah, ok. Feel free to prepare PR. -- WBR, SD. Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel

Re: [Firebird-devel] MSVS project for examples

2020-06-17 Thread Dimitry Sibiryakov
14.06.2020 13:17, Dimitry Sibiryakov wrote:   Are these project supposed to be included into distribution packages? Nobody cares? Ok... -- WBR, SD. Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel

[Firebird-devel] Tabs vs spaces

2020-06-17 Thread Dimitry Sibiryakov
Hello All. What is coding style rules about idents? Only tabs are allowed? -- WBR, SD. Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel

Re: [Firebird-devel] ODP: Modern C++: constexpr

2020-06-17 Thread Dimitry Sibiryakov
17.06.2020 12:35, Lester Caine wrote: Same discussion is going on on many lists Yeah, a million of lemmings can't run wrong. -- WBR, SD. Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel

Re: [Firebird-devel] ODP: Modern C++: constexpr

2020-06-17 Thread Dimitry Sibiryakov
17.06.2020 02:57, Leyne, Sean wrote: I don't see why we shouldn't be doing the same. Because we have no resources and time to waste to it...? But I found idea to be gender-neutral very attractive. From this on I'll use politically correct word "it" instead of offending "he" and "she" in

Re: [Firebird-devel] CI checks

2020-06-16 Thread Dimitry Sibiryakov
16.06.2020 15:42, Adriano dos Santos Fernandes wrote: the best way IMO should be to have a daily github action that get latest FB active branches and latest tests and run. That would work too but wouldn't we run out of available resources? I see travis is limited to 2 minutes per month

[Firebird-devel] CI checks

2020-06-16 Thread Dimitry Sibiryakov
Hello All. May be some testing could be added to CI checks to allow early detection of regressions? Like TCS or fbtest suite... -- WBR, SD. Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel

Re: [Firebird-devel] Modern C++: constexpr

2020-06-16 Thread Dimitry Sibiryakov
16.06.2020 02:35, Adriano dos Santos Fernandes wrote: You mean: imagine if the normal thing happen? :) Every Firebird pointer is deleted with global delete. Didn't overriding of global delete operator cause compilation and runtime problems on MacOSX at least? And doesn't it require strictly

Re: [Firebird-devel] FB 4, iUtil and new interface in general

2020-06-16 Thread Dimitry Sibiryakov
15.06.2020 17:44, Pavel Cisar wrote: For interface consumer, presence of iStatus was clear indication that method may fail, and absence that it never fails. It was true for FB 3.0. Now it's not true anymore and I'd like understand why. New methods always can fail with "not implemented" error

Re: [Firebird-devel] Modern C++: constexpr

2020-06-15 Thread Dimitry Sibiryakov
15.06.2020 23:37, Adriano dos Santos Fernandes wrote: AFAIK unique_ptr does not allocate memory. Yes, but it deallocates. Imagine mistakenly called delete on a pointer got from pool. That's my concern. -- WBR, SD. Firebird-Devel mailing list, web interface at https://lists.sourceforg

Re: [Firebird-devel] Modern C++: constexpr

2020-06-15 Thread Dimitry Sibiryakov
15.06.2020 20:03, Adriano dos Santos Fernandes wrote: I'm also playing with some containers I think we should allow: shared_ptr (with adaptor for our pools), unique_ptr. unique_ptr is fine if you know a sure way to prevent its usage with default allocator by mistake. shared_ptr AFAIK uses

[Firebird-devel] Modern C++: constexpr

2020-06-15 Thread Dimitry Sibiryakov
Hello All. Is "constexpr" allowed for usage? -- WBR, SD. Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel

Re: [Firebird-devel] NMAKE usage

2020-06-15 Thread Dimitry Sibiryakov
15.06.2020 15:53, Alex Peshkoff via Firebird-devel wrote: More than 10 years ago Jim suggested better (on my side view) way - add GPRE command as additional build step directly into VS project file. Yes, this idea stroked me too but when I tried to do it I had a problem which GPRE to use. Cu

[Firebird-devel] MSVS project for examples

2020-06-14 Thread Dimitry Sibiryakov
Hello All. Are these project supposed to be included into distribution packages? If no - they must not be copied to output dir. If yes - they must have no dependencies to source tree. -- WBR, SD. Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/list

Re: [Firebird-devel] FB 4, iUtil and new interface in general

2020-06-12 Thread Dimitry Sibiryakov
12.06.2020 08:52, Pavel Cisar wrote: If you have objections, you should provide a list with reasons why it's bad. At first, I already did it a lot. At second now it is pointless because the API already was declared "public" and thus engraved in stone. -- WBR, SD. Firebird-Devel maili

Re: [Firebird-devel] FB 4, iUtil and new interface in general

2020-06-11 Thread Dimitry Sibiryakov
11.06.2020 18:56, Pavel Cisar wrote: It would be a little bit unfortunate if we will end with 50+ method iUtil interface in FB 6, thought. I hope that before that time someone come with "very new API" that will be a little better designed so this "new API" will get status "deprecated". --

[Firebird-devel] NMAKE usage

2020-06-11 Thread Dimitry Sibiryakov
Hello All. Is there a reason why we cannot use NMAKE during Windows build to do such things as "preprocess GPRE files only if source was changed"? -- WBR, SD. Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel

[Firebird-devel] CLOOP on Windows

2020-06-11 Thread Dimitry Sibiryakov
Hello All. Why compilation of CLOOP and generation of headers is not included in Windows build routine? -- WBR, SD. Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel

Re: [Firebird-devel] Appveyor build

2020-06-05 Thread Dimitry Sibiryakov
05.06.2020 17:22, Alex Peshkoff via Firebird-devel wrote: Unavailable host: 504  Gateway Time-out [IP: 52.38.12.101 443] I see following log there: Build started Fetching GitHub repository commit (c8dc3ee)...OK (59,793,710 bytes in 3090 files) Running "install" scripts export APT_PACKAGES=

[Firebird-devel] Appveyor build

2020-06-05 Thread Dimitry Sibiryakov
Hello, All. Do we have a problem with environment there? https://ci.appveyor.com/project/FirebirdSQL/firebird/builds/33322788/job/kx62jby3qgkjx9bn -- WBR, SD. Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel

Re: [Firebird-devel] Value of CURRENT_TIME is not current time

2020-06-02 Thread Dimitry Sibiryakov
02.06.2020 21:45, Mark Rotteveel wrote: I think that is extremely confusing, and not acceptable. That's why everyone was given several years to replace CURRENT_TIME with LOCALTIME and don't use TIME WITH TIMEZONE at all. -- WBR, SD. Firebird-Devel mailing list, web interface at https:

Re: [Firebird-devel] Compatibility issue

2020-06-02 Thread Dimitry Sibiryakov
02.06.2020 12:14, Alex Peshkoff via Firebird-devel wrote: This commit breaks compatibility between versions before and after it. Two functions were removed from Util interface. I.e. old modules (if any) using Util interface should be rebuilt with new firebird version to work with it. Shouldn

Re: [Firebird-devel] Error message 'Install incomplete' in FB4

2020-06-01 Thread Dimitry Sibiryakov
01.06.2020 16:42, Alex Peshkoff via Firebird-devel wrote: People often complain of poor diagnostics in firebird. Well, looks like now it becomes popular to complain of too good diagnostics - just because it became a bit old. Actually creation of a unnecessary problem just to show perfect diag

<    1   2   3   4   5   6   7   8   9   10   >