Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

1.3 KB
Raw Blame
- statement: |-
    CREATE TABLE t(a int);
    COMMENT ON COLUMN t.a IS 'comments';
  changeType: 1
- statement: CREATE TABLE t(a int);
  changeType: 1
  want:
    - status: 2
      code: 1032
      title: COLUMN_COMMENT
      content: Comment is required for column `t.a`
      startposition:
        line: 1
        column: 0
      endposition: null
- statement: |-
    CREATE TABLE t(a int);
    COMMENT ON COLUMN t.a IS 'loooooooong comments';
  changeType: 1
  want:
    - status: 2
      code: 1301
      title: COLUMN_COMMENT
      content: Column `t.a` comment is too long. The length of comment should be within 10 characters
      startposition:
        line: 2
        column: 0
      endposition: null
- statement: |-
    CREATE TABLE t(a int, d text);
    COMMENT ON COLUMN t.a IS 'comments';
  changeType: 1
  want:
    - status: 2
      code: 1032
      title: COLUMN_COMMENT
      content: Comment is required for column `t.d`
      startposition:
        line: 1
        column: 0
      endposition: null
- statement: |-
    CREATE TABLE t(a int);
    COMMENT ON COLUMN t.a IS 'loooooooong comments';
    COMMENT ON COLUMN t.a IS NULL;
  changeType: 1
  want:
    - status: 2
      code: 1032
      title: COLUMN_COMMENT
      content: Comment is required for column `t.a`
      startposition:
        line: 1
        column: 0
      endposition: null