Re: Is this a bug ? - Mailing list pgsql-general

From Gianni Ceccarelli
Subject Re: Is this a bug ?
Date
Msg-id 20191023164827.6174d533@exelion
Whole thread Raw
In response to Is this a bug ?  (Ravi Krishna <sr_krishna@aol.com>)
List pgsql-general
Weird, but apparently not a bug. From
https://www.postgresql.org/docs/current/sql-syntax-lexical.html#SQL-SYNTAX-CONSTANTS

> Two string constants that are only separated by whitespace with at
> least one newline are concatenated and effectively treated as if the
> string had been written as one constant. For example:
>
>   SELECT 'foo'
>   'bar';
>
> is equivalent to:
>
>   SELECT 'foobar';
>
> but:
>
>   SELECT 'foo'      'bar';
>
> is not valid syntax. (This slightly bizarre behavior is specified by
> SQL; PostgreSQL is following the standard.)

-- 
    Dakkar - <Mobilis in mobile>
    GPG public key fingerprint = A071 E618 DD2C 5901 9574
                                 6FE2 40EA 9883 7519 3F88
                        key id = 0x75193F88



pgsql-general by date:

Previous
From: Ron
Date:
Subject: Re: Is this a bug ?
Next
From: Geoff Winkless
Date:
Subject: Re: Is this a bug ?