Skip to content

Commit

Permalink
Merge pull request #263 from jyutzler/i260
Browse files Browse the repository at this point in the history
min/max_is_inclusive #260
  • Loading branch information
jyutzler committed Oct 18, 2016
2 parents 938d3d6 + 094c230 commit e2f78d9
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions spec/annexes/extension_schema.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -314,15 +314,15 @@ If it contains rows with `constraint_type` column values of "enum" or "glob", th
[cols="1,5a"]
|========================================
|*Test Case ID* |+/opt/schema/data_column_constraints/data/data_values_inclusive_for_range+
|*Test Purpose* |Verify that the gpkg_data_column_constraints minIsInclusive and maxIsInclusive column values are NOT NULL and either 0 or 1 for rows with a constraint_type value of "range".
|*Test Purpose* |Verify that the gpkg_data_column_constraints min_is_inclusive and max_is_inclusive column values are NOT NULL and either 0 or 1 for rows with a constraint_type value of "range".
|*Test Method* |
. SELECT minIsInclusive, maxIsInclusive FROM gpkg_data column_constraints WHERE constraint_type = ‘range’
. SELECT min_is_inclusive, max_is_inclusive FROM gpkg_data column_constraints WHERE constraint_type = ‘range’
. Not testable if returns an empty result set
. For each set of values returned by step 1
.. Fail if minIsInclusive IS NULL
.. Fail if maxIsInclusive IS NULL
.. Fail if minIsInclusive is NOT IN (0,1)
.. Fail if maxIsInclusive is NOT IN (0,1)
.. Fail if min_is_inclusive IS NULL
.. Fail if max_is_inclusive IS NULL
.. Fail if min_is_inclusive is NOT IN (0,1)
.. Fail if max_is_inclusive is NOT IN (0,1)
. Pass if no fails.
|*Reference* |Annex F.9 Req 112
|*Test Type* |Capability
Expand All @@ -331,15 +331,15 @@ If it contains rows with `constraint_type` column values of "enum" or "glob", th
[cols="1,5a"]
|========================================
|*Test Case ID:* |+/opt/schema/data_column_constraints/data/data_values_min_max_inclusive_for_enum_glob+
|*Test Purpose:* |Verify that the gpkg_data_column_constraints min, max, minIsInclusive and maxIsInclusive column values are NULL for rows with a constraint_type value of "enum" or “glob”.
|*Test Purpose:* |Verify that the gpkg_data_column_constraints min, max, min_is_inclusive and max_is_inclusive column values are NULL for rows with a constraint_type value of "enum" or “glob”.
|*Test Method:* |
. SELECT min, max, minIsInclusive, maxIsInclusive FROM gpkg_data column_constraints WHERE constraint_type IN (‘enum’,’glob)
. SELECT min, max, min_is_inclusive, max_is_inclusive FROM gpkg_data column_constraints WHERE constraint_type IN (‘enum’,’glob)
. Not testable if returns an empty result set
. For each set of values returned by step 1
.. Fail if min IS NOT NULL
.. Fail if max IS NOT NULL
.. Fail if minIsInclusive IS NOT NULL
.. Fail if maxIsInclusive IS NOT NULL
.. Fail if min_is_inclusive IS NOT NULL
.. Fail if max_is_inclusive IS NOT NULL
. Pass if no fails.
|*Reference* |Annex F.9 Req 113
|*Test Type* |Capability
Expand Down

0 comments on commit e2f78d9

Please sign in to comment.