Fix error with ALTER CONSTRAINT formatting; added a test

This commit is contained in:
Alexey Milovidov 2020-06-15 07:36:20 +03:00
parent e9eb722d4a
commit e2607f005c
3 changed files with 10 additions and 1 deletions

View File

@ -0,0 +1 @@
ALTER TABLE replicated_constraints1 ADD CONSTRAINT IF NOT EXISTS b_constraint CHECK b > 10

View File

@ -0,0 +1,8 @@
#!/usr/bin/env bash
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
. $CURDIR/../shell_config.sh
set -e
$CLICKHOUSE_FORMAT --oneline <<<"ALTER TABLE replicated_constraints1 ADD CONSTRAINT IF NOT EXISTS b_constraint CHECK b > 10"