[Firebird-devel] [FB-Tracker] Created: (CORE-5065) Altering a procedure called by another procedure doesn't recompile parent

2016-01-05 Thread Jonathan Neve (JIRA)
Altering a procedure called by another procedure doesn't recompile parent - Key: CORE-5065 URL: http://tracker.firebirdsql.org/browse/CORE-5065 Project: Firebird Core Is

[Firebird-devel] Literals in CASE expression

2016-01-05 Thread Pavel Cisar
Hi all, We have an annoying little problem. The visible manifestation is that literals in CASE expressions could be padded with spaces. Here is simplified example: set term ^; create procedure tmp_sp(pParam integer) returns (selectionIf varchar(40), selectionCase varchar(40)) as declare vari

Re: [Firebird-devel] Literals in CASE expression

2016-01-05 Thread Carlos H. Cantu
I start wondering if nowadays, saying that a RDBMS "complies to the SQL Standard" is seem by the users as a "plus". Most of the time, I saw this as a good way to say: "Ok, Firebird is Standard compliant, so you can move easily from another RDBMS to it". But seems that all the others RDBMS don't ca

Re: [Firebird-devel] Literals in CASE expression

2016-01-05 Thread Dmitry Yemanov
05.01.2016 16:31, Pavel Cisar wrote: > > We have an annoying little problem. We have it for the past decade, so I agree with describing this problem as a "little" one ;-) > To sum it up, standard dictates that literals are CHARs, aggregated > values has length of longest one and because CHARs ar

Re: [Firebird-devel] Literals in CASE expression

2016-01-05 Thread Adriano dos Santos Fernandes
On 05/01/2016 11:31, Pavel Cisar wrote: > Hi all, > > We have an annoying little problem. The visible manifestation is that > literals in CASE expressions could be padded with spaces. > > We also have DECODE. Let's see it: SQL> select 'a' || decode(1, 1, 'a', 2, 'b') || 'c' from rdb$database;

Re: [Firebird-devel] Literals in CASE expression

2016-01-05 Thread Wols Lists
On 05/01/16 14:37, Dmitry Yemanov wrote: > These examples say nothing about the approach used there: either > literals are VARCHARs, or CASE derives the datatype differenly, or both. > > And I suppose Firebird is not really alone, see for MariaDB: > > CASE ... THEN 'a' ... THEN 'abcd' ... ELSE '

Re: [Firebird-devel] Literals in CASE expression

2016-01-05 Thread Jim Starkey
Hallelujah, Carlos! At MySQL, I argued for SQL compliance until I was blue in the face but without noticeable effect. Database systems should have strings. Period. Not fixed strings, variable strings, or bounded strings. String comparisons should be blank extended. Nobody should ever have

[Firebird-devel] [FB-Tracker] Created: (CORE-5066) FBSVCMGR produces "Missing arg #1 - possibly status vector overflow" when its command includes >= 5 switches and all of them aren't allowed for non-p

2016-01-05 Thread Pavel Zotov (JIRA)
FBSVCMGR produces "Missing arg #1 - possibly status vector overflow" when its command includes >= 5 switches and all of them aren't allowed for non-privileged user -

Re: [Firebird-devel] Literals in CASE expression

2016-01-05 Thread Leyne, Sean
Dmitry, > > To sum it up, standard dictates that literals are CHARs, aggregated > > values has length of longest one and because CHARs are padded with > > spaces to declared length, we have such stupid output in CASE. Sure, > > it could be easily "fixed" with CAST or TRIM, but it's extremely > > a

[Firebird-devel] [FB-Tracker] Created: (CORE-5067) Blocking new connections as a consequence of the too long sweep security2.fdb

2016-01-05 Thread Oleg Matveyev (JIRA)
Blocking new connections as a consequence of the too long sweep security2.fdb -- Key: CORE-5067 URL: http://tracker.firebirdsql.org/browse/CORE-5067 Project: Firebird Core

[Firebird-devel] [FB-Tracker] Created: (CORE-5068) gbak with invalid parameter crashes FB

2016-01-05 Thread Carlos H. Cantu (JIRA)
gbak with invalid parameter crashes FB -- Key: CORE-5068 URL: http://tracker.firebirdsql.org/browse/CORE-5068 Project: Firebird Core Issue Type: Bug Affects Versions: 2.5.5 Reporter: Carlos

Re: [Firebird-devel] Literals in CASE expression

2016-01-05 Thread Arno Brinkman
> P.S. The fact that a fix for this could introduce compatibility issues is > not a something we should care about when fixing invalid/wrong > functionality. Compatibility issues are items which developers need to > resolve for themselves, nothing is forcing a developer to adopt v3. Well.

[Firebird-devel] [FB-Tracker] Created: (CORE-5069) Improper call of "daemon" shell function in rc startup script leads to "dirname" error

2016-01-05 Thread Steve Friedl (JIRA)
Improper call of "daemon" shell function in rc startup script leads to "dirname" error -- Key: CORE-5069 URL: http://tracker.firebirdsql.org/browse/CORE-5069 Project:

Re: [Firebird-devel] Literals in CASE expression

2016-01-05 Thread Mark Rotteveel
No, please no. I can find some logic in changing the concatenation behavior as described (as I think that the standard might offer some leeway there, although I need to study on it first), but changing the math that is clearly described in the standard to something else is plain wrong. Mark ---

Re: [Firebird-devel] Literals in CASE expression

2016-01-05 Thread Dmitry Yemanov
06.01.2016 10:28, Mark Rotteveel wrote: > No, please no. I believe Arno was writing with the sarcasm mode turned on ;-) Dmitry -- Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/list

Re: [Firebird-devel] Literals in CASE expression

2016-01-05 Thread Mark Rotteveel
My sarcasm detector is not so good. Mark - Reply message - Van: "Dmitry Yemanov" Aan: "For discussion among Firebird Developers" Onderwerp: [Firebird-devel] Literals in CASE expression Datum: wo, jan. 6, 2016 08:37 06.01.2016 10:28, Mark Rotteveel wrote: > No, please no. I believe Ar

Re: [Firebird-devel] Literals in CASE expression

2016-01-05 Thread Dmitry Yemanov
06.01.2016 00:49, Leyne, Sean wrote: > >> First of all, let's distinguish between two things: (1) how string literals >> are >> described and (2) how CASE evaluates the resulting datatype. Changing any >> of them may lead to the desired result. > > The issue is not the intermediate datatype but th