identifiers.td 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. # Copyright Materialize, Inc. and contributors. All rights reserved.
  2. #
  3. # Use of this software is governed by the Business Source License
  4. # included in the LICENSE file at the root of this repository.
  5. #
  6. # As of the Change Date specified in that file, in accordance with
  7. # the Business Source License, use of this software will be governed
  8. # by the Apache License, Version 2.0.
  9. ! CREATE CLUSTER "." REPLICAS (r1 (SIZE '1'));
  10. contains: invalid identifier
  11. ! CREATE CLUSTER ".." REPLICAS (r1 (SIZE '1'));
  12. contains: invalid identifier
  13. ! CREATE DATABASE "."
  14. contains: invalid identifier
  15. ! CREATE DATABASE ".."
  16. contains: invalid identifier
  17. ! CREATE SCHEMA "."
  18. contains: invalid identifier
  19. ! CREATE SCHEMA ".."
  20. contains: invalid identifier
  21. > CREATE SCHEMA s1000
  22. ! ALTER SCHEMA s1000 RENAME TO "."
  23. contains: invalid identifier
  24. > DROP SCHEMA s1000
  25. ! CREATE TABLE "." (x INT)
  26. contains: invalid identifier
  27. ! CREATE TABLE ".." (x INT)
  28. contains: invalid identifier
  29. ! CREATE TABLE "public"."." (x INT)
  30. contains: invalid identifier
  31. > CREATE TABLE "t.a.b" (x INT)
  32. ! ALTER TABLE "t.a.b" RENAME TO ".";
  33. contains: invalid identifier
  34. > CREATE SCHEMA "a"
  35. > CREATE TABLE "a"."b" (x INT)
  36. ! CREATE INDEX "." ON "a"."b"(x);
  37. contains: invalid identifier
  38. > DROP TABLE "a"."b"
  39. ! ALTER SCHEMA "a" RENAME TO "."
  40. contains: invalid identifier
  41. > DROP SCHEMA "a"
  42. ! CREATE TABLE t1 ("." INT)
  43. contains: invalid identifier
  44. ! CREATE TABLE t2 (".." INT)
  45. contains: invalid identifier
  46. > CREATE TABLE t3 ("x.y" INT)
  47. > DROP TABLE t3
  48. > CREATE TABLE t4 (x INT)
  49. ! ALTER TABLE t4 RENAME TO "."
  50. contains: invalid identifier
  51. > CREATE TABLE t5 (x INT)
  52. ! CREATE VIEW "." AS SELECT * FROM t5
  53. contains: invalid identifier
  54. > DROP TABLE t5 CASCADE
  55. > CREATE TABLE t6 (x INT)
  56. ! CREATE VIEW ".." AS SELECT * FROM t6
  57. contains: invalid identifier
  58. > DROP TABLE t6 CASCADE
  59. > CREATE TABLE t7 (x INT)
  60. ! CREATE VIEW v7 AS SELECT x AS "." FROM t7
  61. contains: invalid identifier
  62. > DROP TABLE t7 CASCADE
  63. # only supported by Postgres ("\002E" is unicode for the dot)
  64. ! CREATE TABLE U&"\002E" (x int);
  65. contains: found operator "&"
  66. ! CREATE VIEW "." AS SELECT 1
  67. contains: invalid identifier
  68. > CREATE VIEW v2 AS SELECT 1
  69. ! ALTER VIEW v2 RENAME TO "."
  70. contains: invalid identifier
  71. > DROP VIEW v2
  72. ! CREATE MATERIALIZED VIEW "." AS SELECT 1
  73. contains: invalid identifier
  74. > CREATE CLUSTER temp_cluster REPLICAS (r1 (SIZE '1'));
  75. ! CREATE SOURCE "." IN CLUSTER temp_cluster FROM WEBHOOK BODY FORMAT TEXT;
  76. contains: invalid identifier
  77. ! CREATE SOURCE ".." IN CLUSTER temp_cluster FROM WEBHOOK BODY FORMAT TEXT;
  78. contains: invalid identifier
  79. > CREATE SOURCE "s.a.b" IN CLUSTER temp_cluster FROM WEBHOOK BODY FORMAT TEXT;
  80. ! ALTER SOURCE "s.a.b" RENAME TO ".";
  81. contains: invalid identifier
  82. > DROP CLUSTER temp_cluster CASCADE
  83. ! CREATE TYPE "." AS LIST (ELEMENT TYPE = int4);
  84. contains: invalid identifier
  85. ! CREATE SECRET "." AS 'a';
  86. contains: invalid identifier
  87. > CREATE SECRET secret1 AS '.';
  88. > DROP SECRET secret1
  89. ! SELECT 1 AS "."
  90. contains: invalid identifier
  91. ! SELECT 2 AS ".."
  92. contains: invalid identifier
  93. ! SELECT 1 "."
  94. contains: invalid identifier
  95. # Bad error messages due to complex code in the SQL parser that is hard to fix.
  96. ! SELECT * FROM (SELECT 1) AS "."
  97. contains:Expected joined table, found number
  98. ! SELECT * FROM (SELECT 1 AS ".") x
  99. contains:Expected joined table, found number