Skip to content

Commit 79b66ed

Browse files
committed
Fix Option CollectionOptions::VALIDATION not being set.
1 parent 31d9c01 commit 79b66ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/mysqlx/xdevapi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1249,7 +1249,7 @@ void CollectionOptions::do_set<CollectionOptions::VALIDATION>(CollectionValidati
12491249
m_data.validation.m_data.used.test(CollectionValidation::SCHEMA))
12501250
throw_error("Validation already set.");
12511251

1252-
m_data.used.test(CollectionOptions::VALIDATION);
1252+
m_data.used.set(CollectionOptions::VALIDATION);
12531253
m_data.validation.m_data.used.set(CollectionValidation::LEVEL);
12541254
m_data.validation.m_data.used.set(CollectionValidation::SCHEMA);
12551255

0 commit comments

Comments
 (0)