1
0
Fork 0

potential fix for unique index constraint violation with array indexes

This commit is contained in:
Jan Steemann 2015-10-23 17:22:37 +02:00
parent 025e470e3b
commit 50d5176adf
1 changed files with 4 additions and 3 deletions

View File

@ -895,6 +895,10 @@ namespace std {
return false;
}
if (a[i]._data.data == nullptr || b[i]._data.data == nullptr) {
if (a[i]._sid == b[i]._sid) {
// this should be a TRI_SHAPE_SID_NULL value
return true;
}
// TODO FIXME
return false;
}
@ -911,9 +915,6 @@ namespace std {
} //closes namespace std
////////////////////////////////////////////////////////////////////////////////
/// @brief shaped json sub-object
////////////////////////////////////////////////////////////////////////////////