check-from-v0.27.0-table.td 896 B

12345678910111213141516171819202122232425262728293031323334353637
  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. #
  10. # Check the various attributes supported by CREATE TABLE
  11. #
  12. > INSERT INTO "space table" VALUES (123);
  13. > SELECT * FROM "space table";
  14. 123
  15. > DROP TABLE "space table";
  16. > INSERT INTO space_column VALUES (123);
  17. > SELECT * FROM space_column
  18. 123
  19. > DROP TABLE space_column;
  20. > INSERT INTO default_value DEFAULT VALUES;
  21. > SELECT * FROM default_value
  22. 123 "default value"
  23. > SHOW COLUMNS IN not_null
  24. f1 false integer ""
  25. ! INSERT INTO not_null VALUES (null)
  26. contains:null value in column "f1" violates not-null constraint