pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: newsx@outlook.com
Subject: BUG #15606: Postgres incorrectly returns syntax error when using WITH clacuse
Date: Wed, 23 Jan 2019 13:18:36 +0000
Message-ID: <15606-57631ea2557ebb93@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      15606
Logged by:          Rikke Hammer
Email address:      newsx@outlook.com
PostgreSQL version: 11.1
Operating system:   Windows 10 Home  version1803 x64
Description:        

I get a syntax error when I try to use a WITH clause in a query. Below is a
simple test query. It (as as well as any other WITH clause query I do,
creates the following error:

          SQL Error [42601]: ERROR: syntax error at end of input
          Position: 53
           ERROR: syntax error at end of input
           Position: 53
           ERROR: syntax error at end of input
           Position: 53


CREATE TABLE employees (
 employee_id serial PRIMARY KEY,
 full_name VARCHAR NOT NULL,
 manager_id INT
);

INSERT INTO employees (
 employee_id,
 full_name,
 manager_id
)
VALUES
 (1, 'Michael North', NULL),
 (2, 'Megan Berry', 1),
 (3, 'Sarah Berry', 1),
 (4, 'Zoe Black', 1),
 (5, 'Tim James', 1),
 (6, 'Bella Tucker', 2),
 (7, 'Ryan Metcalfe', 2);
 

WITH emp AS (
select * from rikke_hammer.employees)



view thread (2+ messages)  latest in thread

Message-ID: <15606-57631ea2557ebb93@postgresql.org>
Permalink:  ../15606-57631ea2557ebb93@postgresql.org/
Also on:    postgresql.org/message-id/15606-57631ea2557ebb93@postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, newsx@outlook.com
  Subject: Re: BUG #15606: Postgres incorrectly returns syntax error when using WITH clacuse
  In-Reply-To: <15606-57631ea2557ebb93@postgresql.org>
  References: <15606-57631ea2557ebb93@postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox