From 055067deefca8fc09eb3648a24b6be239515e90d Mon Sep 17 00:00:00 2001 From: Simon Holywell Date: Fri, 28 Aug 2020 10:44:07 +1000 Subject: [PATCH] closes #68 by using BETWEEN for the range --- _includes/sqlstyle.guide.de.md | 2 +- _includes/sqlstyle.guide.it.md | 2 +- _includes/sqlstyle.guide.ja.md | 2 +- _includes/sqlstyle.guide.md | 2 +- _includes/sqlstyle.guide.pt-BR.md | 2 +- _includes/sqlstyle.guide.ru.md | 2 +- _includes/sqlstyle.guide.zh-TW.md | 2 +- _includes/sqlstyle.guide.zh.md | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/_includes/sqlstyle.guide.de.md b/_includes/sqlstyle.guide.de.md index 813ab86..fc8073c 100644 --- a/_includes/sqlstyle.guide.de.md +++ b/_includes/sqlstyle.guide.de.md @@ -452,7 +452,7 @@ CREATE TABLE staff ( first_name VARCHAR(100) NOT NULL, pens_in_drawer INT(2) NOT NULL, CONSTRAINT pens_in_drawer_range - CHECK(pens_in_drawer >= 1 AND pens_in_drawer < 100) + CHECK(pens_in_drawer BETWEEN 1 AND 99) ); ``` diff --git a/_includes/sqlstyle.guide.it.md b/_includes/sqlstyle.guide.it.md index 79c8017..64e1b38 100644 --- a/_includes/sqlstyle.guide.it.md +++ b/_includes/sqlstyle.guide.it.md @@ -326,7 +326,7 @@ CREATE TABLE staff ( first_name VARCHAR(100) NOT NULL, pens_in_drawer INT(2) NOT NULL, CONSTRAINT pens_in_drawer_range - CHECK(pens_in_drawer >= 1 AND pens_in_drawer < 100) + CHECK(pens_in_drawer BETWEEN 1 AND 99) ); ``` diff --git a/_includes/sqlstyle.guide.ja.md b/_includes/sqlstyle.guide.ja.md index 69ade9c..e8204d4 100644 --- a/_includes/sqlstyle.guide.ja.md +++ b/_includes/sqlstyle.guide.ja.md @@ -336,7 +336,7 @@ CREATE TABLE staff ( first_name VARCHAR(100) NOT NULL, pens_in_drawer INT(2) NOT NULL, CONSTRAINT pens_in_drawer_range - CHECK(pens_in_drawer >= 1 AND pens_in_drawer < 100) + CHECK(pens_in_drawer BETWEEN 1 AND 99) ); ``` diff --git a/_includes/sqlstyle.guide.md b/_includes/sqlstyle.guide.md index e0f0ad8..2c728d2 100644 --- a/_includes/sqlstyle.guide.md +++ b/_includes/sqlstyle.guide.md @@ -405,7 +405,7 @@ CREATE TABLE staff ( first_name VARCHAR(100) NOT NULL, pens_in_drawer INT(2) NOT NULL, CONSTRAINT pens_in_drawer_range - CHECK(pens_in_drawer >= 1 AND pens_in_drawer < 100) + CHECK(pens_in_drawer BETWEEN 1 AND 99) ); ``` diff --git a/_includes/sqlstyle.guide.pt-BR.md b/_includes/sqlstyle.guide.pt-BR.md index 7ff417d..d599ad4 100644 --- a/_includes/sqlstyle.guide.pt-BR.md +++ b/_includes/sqlstyle.guide.pt-BR.md @@ -416,7 +416,7 @@ CREATE TABLE staff ( first_name VARCHAR(100) NOT NULL, pens_in_drawer INT(2) NOT NULL, CONSTRAINT pens_in_drawer_range - CHECK(pens_in_drawer >= 1 AND pens_in_drawer < 100) + CHECK(pens_in_drawer BETWEEN 1 AND 99) ); ``` diff --git a/_includes/sqlstyle.guide.ru.md b/_includes/sqlstyle.guide.ru.md index 684f1bb..000b514 100644 --- a/_includes/sqlstyle.guide.ru.md +++ b/_includes/sqlstyle.guide.ru.md @@ -427,7 +427,7 @@ CREATE TABLE staff ( first_name VARCHAR(100) NOT NULL, pens_in_drawer INT(2) NOT NULL, CONSTRAINT pens_in_drawer_range - CHECK(pens_in_drawer >= 1 AND pens_in_drawer < 100) + CHECK(pens_in_drawer BETWEEN 1 AND 99) ); ``` diff --git a/_includes/sqlstyle.guide.zh-TW.md b/_includes/sqlstyle.guide.zh-TW.md index 7d53a14..6f8b43d 100644 --- a/_includes/sqlstyle.guide.zh-TW.md +++ b/_includes/sqlstyle.guide.zh-TW.md @@ -328,7 +328,7 @@ CREATE TABLE staff ( first_name VARCHAR(100) NOT NULL, pens_in_drawer INT(2) NOT NULL, CONSTRAINT pens_in_drawer_range - CHECK(pens_in_drawer >= 1 AND pens_in_drawer < 100) + CHECK(pens_in_drawer BETWEEN 1 AND 99) ); ``` diff --git a/_includes/sqlstyle.guide.zh.md b/_includes/sqlstyle.guide.zh.md index 3c3c746..1c5f2c9 100644 --- a/_includes/sqlstyle.guide.zh.md +++ b/_includes/sqlstyle.guide.zh.md @@ -328,7 +328,7 @@ CREATE TABLE staff ( first_name VARCHAR(100) NOT NULL, pens_in_drawer INT(2) NOT NULL, CONSTRAINT pens_in_drawer_range - CHECK(pens_in_drawer >= 1 AND pens_in_drawer < 100) + CHECK(pens_in_drawer BETWEEN 1 AND 99) ); ```