File: 6-multiline-table-name.sql

package info (click to toggle)
pgcopydb 0.17-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 30,636 kB
  • sloc: ansic: 217,474; sql: 1,654; sh: 812; makefile: 365; python: 94
file content (31 lines) | stat: -rw-r--r-- 555 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
CREATE TABLE public."with MyTableName

     AS (SELECT row_id

  " (
    row_id uuid NOT NULL
);

--
-- See https://github.com/dimitri/pgcopydb/issues/430
--
-- Migration fails when table has double quotes in them
--

CREATE TABLE IF NOT EXISTS public."""dqname"""
(
    id integer
);


--
-- See https://github.com/dimitri/pgcopydb/issues/483
--
-- Migrations fails when the column name of a table is very long
--
CREATE TABLE """long"""
(
    """aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa""" INT
);

INSERT INTO """long""" VALUES (1);