Re: [Firebird-devel] Protocol version 13 weird behavior

2016-03-08 Thread Hajime Nakagami
Please check these urls too. http://tracker.firebirdsql.org/browse/CORE-2897 https://github.com/asfernandes/firebird/commit/c41493c756cdd6c7118e396aeec814f1b14bed3a 2016-03-09 5:14 GMT+09:00 Jiří Činčura : > > Check org.firebirdsql.gds.ng.wire.v13.V13Statement in Jaybird, it > > handles the wri

Re: [Firebird-devel] Protocol version 13 weird behavior

2016-03-08 Thread Jiří Činčura
> Check org.firebirdsql.gds.ng.wire.v13.V13Statement in Jaybird, it > handles the writing and reading of rows in the protocol v13. Thanks. -- Mgr. Jiří Činčura Independent IT Specialist -- Transform Data into Opportuni

Re: [Firebird-devel] Protocol version 13 weird behavior

2016-03-08 Thread Mark Rotteveel
On 2016-03-08 20:49, Jiří Činčura wrote: >> Did you implement the new null bitmask? > > Ahh, this might be the problem. Some link to tracker? Or description? Check org.firebirdsql.gds.ng.wire.v13.V13Statement in Jaybird, it handles the writing and reading of rows in the protocol v13. Mark -

Re: [Firebird-devel] How to create an alternative security database during restore?

2016-03-08 Thread alex
> In my scenario I don't have shell access to server, onyl remote > access via ssh. > I've a 2.5 gbak file and a 3.0 server running. > > I was trying to restore the database without sysdba account and with > only editing database.conf once. This is currently not possible. > > I'll inves

Re: [Firebird-devel] Protocol version 13 weird behavior

2016-03-08 Thread Jiří Činčura
> Did you implement the new null bitmask? Ahh, this might be the problem. Some link to tracker? Or description? -- Mgr. Jiří Činčura Independent IT Specialist -- Transform Data into Opportunity. Accelerate data analysis

Re: [Firebird-devel] Protocol version 13 weird behavior

2016-03-08 Thread Mark Rotteveel
Did you implement the new null bitmask? Mark - Bericht beantwoorden - Van: "Jiří Činčura" Aan: "For discussion among Firebird Developers" Onderwerp: [Firebird-devel] Protocol version 13 weird behavior Datum: di, mrt. 8, 2016 20:32 Hi *, Interestingly when I turn on protocol version 13

[Firebird-devel] Protocol version 13 weird behavior

2016-03-08 Thread Jiří Činčura
Hi *, Interestingly when I turn on protocol version 13 (which is really just a 12 with Srp currently in provider), for some statements (insert KO, create table OK, for example) I'm getting no data in response buffer from server after op_execute. There's just 0 bytes waiting for me. Is there some c

[Firebird-devel] [FB-Tracker] Created: (CORE-5141) Field definition allow several NOT NULL clauses

2016-03-08 Thread Dimitry Sibiryakov (JIRA)
Field definition allow several NOT NULL clauses --- Key: CORE-5141 URL: http://tracker.firebirdsql.org/browse/CORE-5141 Project: Firebird Core Issue Type: Bug Components: Engine Affec

Re: [Firebird-devel] Bool predicate with IS and parameter

2016-03-08 Thread Jiří Činčura
> NOT DISTINCT, don't you? I swear I tried that before I sent the question. And it didn't work. Now it works. Maybe I changed something in provider... Confused. -- Mgr. Jiří Činčura Independent IT Specialist -- Transfor

Re: [Firebird-devel] Several NOT NULL constraints for the same field

2016-03-08 Thread Dmitry Yemanov
08.03.2016 21:00, Dimitry Sibiryakov wrote: > > Should I put it into tracker to let the change be documented as an > incompatibility with > previous versions? Yes, please. Dmitry -- Transform Data into Opportunity. A

Re: [Firebird-devel] Several NOT NULL constraints for the same field

2016-03-08 Thread Dimitry Sibiryakov
08.03.2016 18:16, Dmitry Yemanov wrote: > Looks OK to me. Should I put it into tracker to let the change be documented as an incompatibility with previous versions? -- WBR, SD. -- Transform Data into Opportunity

Re: [Firebird-devel] Bool predicate with IS and parameter

2016-03-08 Thread Adriano dos Santos Fernandes
Em 08/03/2016 11:15, Jiří Činčura escreveu: > Hi *, > > is there a way to write a predicate with BOOLEAN column and IS (in FB3)? > Something like `bool_col IS CAST(? as BOOLEAN)`? > You could do with = or NOT DISTINCT, don't you? Adriano ---

Re: [Firebird-devel] Positioned attributes in CREATE/ALTER sequence statement

2016-03-08 Thread Adriano dos Santos Fernandes
Em 08/03/2016 09:33, Dmitry Yemanov escreveu: > 06.03.2016 16:55, Dimitry Sibiryakov wrote: > > >> I think we need DE to make decision. > > The only way > > CREATE OR ALTER SEQUENCE S; > > can be allowed is that is acts as RESTART WITH 0 INCREMENT BY 1 for > existing sequences. > I then see

Re: [Firebird-devel] Several NOT NULL constraints for the same field

2016-03-08 Thread Dmitry Yemanov
08.03.2016 20:10, Dimitry Sibiryakov wrote: >> Do you want to throw a syntax error from the parser or something more >> intelligent like "duplicate constraint definitions are not allowed" from >> DdlNodes? > > Standard syntax error from parser is the simplest solution: > >> SQL> create table t

[Firebird-devel] [FB-Tracker] Created: (CORE-5140) Wrong error message when user tries to set number of page buffers into not supported value

2016-03-08 Thread Vlad Khorsun (JIRA)
Wrong error message when user tries to set number of page buffers into not supported value -- Key: CORE-5140 URL: http://tracker.firebirdsql.org/browse/CORE-5140

Re: [Firebird-devel] Positioned attributes in CREATE/ALTER sequence statement

2016-03-08 Thread Dimitry Sibiryakov
08.03.2016 17:46, Mark Rotteveel wrote: > I disagree, the current syntax conforms to the standard. Unless standard require to throw an error on this syntax, we don't violate it but expand for users' convenience. But as you wish. -- WBR, SD. ---

Re: [Firebird-devel] Several NOT NULL constraints for the same field

2016-03-08 Thread Dimitry Sibiryakov
08.03.2016 17:59, Dmitry Yemanov wrote: > Do you want to throw a syntax error from the parser or something more > intelligent like "duplicate constraint definitions are not allowed" from > DdlNodes? Standard syntax error from parser is the simplest solution: > SQL> create table t (a integer no

Re: [Firebird-devel] Positioned attributes in CREATE/ALTER sequence statement

2016-03-08 Thread Lester Caine
On 08/03/16 17:00, Dmitry Yemanov wrote: > 08.03.2016 19:06, Dimitry Sibiryakov wrote: > >> 05.03.2016 22:28, Lester Caine wrote: >>> It would be nice if we did not have re-order scripts from other >>> databases so >>>NOT NULL DEFAULT '30' >>> has to be >>>DEFAULT '30' NOT NULL >>> in Fire

Re: [Firebird-devel] Positioned attributes in CREATE/ALTER sequence statement

2016-03-08 Thread Dmitry Yemanov
08.03.2016 19:06, Dimitry Sibiryakov wrote: > 05.03.2016 22:28, Lester Caine wrote: >> It would be nice if we did not have re-order scripts from other >> databases so >>NOT NULL DEFAULT '30' >> has to be >>DEFAULT '30' NOT NULL >> in Firebird. > > If DY agree, I can commit this change. I

Re: [Firebird-devel] Several NOT NULL constraints for the same field

2016-03-08 Thread Dmitry Yemanov
08.03.2016 19:51, Dimitry Sibiryakov wrote: > 08.03.2016 17:46, Dmitry Yemanov wrote: >>> "create table t (a integer not null not null not null)" is a valid syntax >>> or a bug? >> I'd call it a bug. A very minor one for sure. > > Am I allowed to commit a fix? Do you want to throw a syntax error

Re: [Firebird-devel] Positioned attributes in CREATE/ALTER sequence statement

2016-03-08 Thread Dmitry Yemanov
08.03.2016 19:50, Dimitry Sibiryakov wrote: > But you are still sure that "CREATE OR ALTER" must alter attributes that are > not > explicitly mentioned in query?.. I believe that both CREATE and ALTER parts should deliver the same object state. I agree that changing non-referenced attributes lo

Re: [Firebird-devel] Positioned attributes in CREATE/ALTER sequence statement

2016-03-08 Thread Dimitry Sibiryakov
08.03.2016 17:45, Dmitry Yemanov wrote: >> But in this case behavior will be inconsistent with plain ALTER TABLE that >> doesn't >> >change not mentioned attributes. > We don't have CREATE OR ALTER for tables, do we? I just mistyped "ALTER SEQUENCE", sorry. >> >I hope you won't insist that "A

Re: [Firebird-devel] Several NOT NULL constraints for the same field

2016-03-08 Thread Dimitry Sibiryakov
08.03.2016 17:46, Dmitry Yemanov wrote: >> "create table t (a integer not null not null not null)" is a valid syntax or >> a bug? > I'd call it a bug. A very minor one for sure. Am I allowed to commit a fix? -- WBR, SD.

Re: [Firebird-devel] BLR contexts limit

2016-03-08 Thread Jim Starkey
I"d use it as an excuse to dump BLR, or at least freeze and deprecate it. It serves no useful purpose and as you note, is an impediment to progress. It deserves to join slide rules, Beta Max, and four function calculators as footnotes in history books. On 3/8/2016 8:02 AM, Dmitry Yemanov wro

Re: [Firebird-devel] Several NOT NULL constraints for the same field

2016-03-08 Thread Dmitry Yemanov
08.03.2016 17:24, Dimitry Sibiryakov wrote: > > "create table t (a integer not null not null not null)" is a valid syntax or > a bug? I'd call it a bug. A very minor one for sure. Dmitry -- Transform Data into Opportu

Re: [Firebird-devel] Positioned attributes in CREATE/ALTER sequence statement

2016-03-08 Thread Mark Rotteveel
I disagree, the current syntax conforms to the standard. Mark - Bericht beantwoorden - Van: "Dimitry Sibiryakov" Aan: "For discussion among Firebird Developers" Onderwerp: [Firebird-devel] Positioned attributes in CREATE/ALTER sequence statement Datum: di, mrt. 8, 2016 17:06 05.03.201

Re: [Firebird-devel] Positioned attributes in CREATE/ALTER sequence statement

2016-03-08 Thread Dmitry Yemanov
08.03.2016 19:37, Dimitry Sibiryakov wrote: > >> The only way >> >> CREATE OR ALTER SEQUENCE S; >> >> can be allowed is that is acts as RESTART WITH 0 INCREMENT BY 1 for >> existing sequences. >> >> This way the behaviour is consistent: both CREATE and ALTER produce the >> same result: existence of

Re: [Firebird-devel] Firebird limits - two different articles with different values

2016-03-08 Thread Dmitry Yemanov
08.03.2016 14:57, liviuslivius wrote: > > what is the limit of rows per table - i have biggest table near 2^30 > records and i am worry if i can reach limit > what are really Firebird limits for both FB2.5 and FB3 > http://www.firebirdfaq.org/faq61/ > http://www.firebirdsql.org/en/firebird-technica

Re: [Firebird-devel] Positioned attributes in CREATE/ALTER sequence statement

2016-03-08 Thread Dimitry Sibiryakov
08.03.2016 13:33, Dmitry Yemanov wrote: > The only way > > CREATE OR ALTER SEQUENCE S; > > can be allowed is that is acts as RESTART WITH 0 INCREMENT BY 1 for > existing sequences. > > This way the behaviour is consistent: both CREATE and ALTER produce the > same result: existence of generator S wi

[Firebird-devel] Bool predicate with IS and parameter

2016-03-08 Thread Jiří Činčura
Hi *, is there a way to write a predicate with BOOLEAN column and IS (in FB3)? Something like `bool_col IS CAST(? as BOOLEAN)`? JC -- Mgr. Jiří Činčura Independent IT Specialist -- Transform Data into Opportunity. Acce

[Firebird-devel] Several NOT NULL constraints for the same field

2016-03-08 Thread Dimitry Sibiryakov
Hello, All. "create table t (a integer not null not null not null)" is a valid syntax or a bug? -- WBR, SD. -- Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Ana

[Firebird-devel] [FB-Tracker] Created: (CORE-5139) mistake in comment "can't ise MutexLockGuard here"

2016-03-08 Thread Kovalenko Dmitry (JIRA)
mistake in comment "can't ise MutexLockGuard here" -- Key: CORE-5139 URL: http://tracker.firebirdsql.org/browse/CORE-5139 Project: Firebird Core Issue Type: Bug Affects Versions: 3.0 RC2, 2

Re: [Firebird-devel] Positioned attributes in CREATE/ALTER sequence statement

2016-03-08 Thread Dmitry Yemanov
06.03.2016 16:55, Dimitry Sibiryakov wrote: > > I think we need DE to make decision. The only way CREATE OR ALTER SEQUENCE S; can be allowed is that is acts as RESTART WITH 0 INCREMENT BY 1 for existing sequences. This way the behaviour is consistent: both CREATE and ALTER produce the same r

Re: [Firebird-devel] Positioned attributes in CREATE/ALTER sequence statement

2016-03-08 Thread Dimitry Sibiryakov
05.03.2016 22:28, Lester Caine wrote: > It would be nice if we did not have re-order scripts from other > databases so > NOT NULL DEFAULT '30' > has to be > DEFAULT '30' NOT NULL > in Firebird. If DY agree, I can commit this change. -- WBR, SD.

[Firebird-devel] Firebird limits - two different articles with different values

2016-03-08 Thread liviuslivius
Hi,   what is the limit of rows per table - i have biggest table near 2^30 records and i am worry if i can reach limit   what are really Firebird limits for both FB2.5 and FB3 http://www.firebirdfaq.org/faq61/ http://www.firebirdsql.org/en/firebird-technical-specifications/     e.g. table rows in

[Firebird-devel] BLR contexts limit

2016-03-08 Thread Dmitry Yemanov
All, The good thing is that the code internals are more or less ready to work with context/stream number of any size, thanks to Claudio's refactoring. So the issue is mostly about BLR. I see two possible solutions: 1) Bump BLR version, make all context-aware verbs to generate/parse longer num

Re: [Firebird-devel] How to create an alternative security database during restore?

2016-03-08 Thread Björn Reimer
Hello, >> >> >>> Did you try to restore using an embedded connection? >> No, not embedded, but via IP. >> >> But I think it makes no difference as the error is the same when >> there is no initialized security table in the configured security >> database. >> > I can suggest you

[Firebird-devel] FYI: Announcing SQL Server on Linux - The Official Microsoft Blog

2016-03-08 Thread Adriano dos Santos Fernandes
https://blogs.microsoft.com/blog/2016/03/07/announcing-sql-server-on-linux/ -- Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn m