From: | Gianni Ceccarelli <dakkar(at)thenautilus(dot)net> |
---|---|
To: | pgsql-general(at)lists(dot)postgresql(dot)org |
Subject: | Re: Is this a bug ? |
Date: | 2019-10-23 15:48:27 |
Message-ID: | 20191023164827.6174d533@exelion |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
From | Date | Subject | |
---|---|---|---|
Next Message | Geoff Winkless | 2019-10-23 15:51:02 | Re: Is this a bug ? |
Previous Message | Ron | 2019-10-23 15:47:42 | Re: Is this a bug ? |