Skip to content

Commit

Permalink
Remove change that was breaking webapp unit tests (#93)
Browse files Browse the repository at this point in the history
* validate data integrity for json columns

* added comment

* remove line that was breaking a bunch of unit tests in webapp, add check for strictSQLMode before validating json column data

* use ubuntu 20.04 (#94)

* use ubuntu 20.04

* fix linter

* remove check for sql strict mode before validating json data

---------

Co-authored-by: Kevin Tabb <[email protected]>
Co-authored-by: Scott Sandler <[email protected]>
  • Loading branch information
3 people authored Feb 9, 2023
1 parent fa63954 commit a32bc1d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/DataIntegrity.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ public static function ensureFieldsPresent(dict<string, mixed> $row, table_schem
}
} else {
$field_value = (string)$row[$field_name];

// handle json column type validation
if ($field_mysql_type === DataType::JSON) {
// null is okay
Expand Down
2 changes: 1 addition & 1 deletion src/Expressions/InOperatorExpression.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function evaluateImpl(row $row, AsyncMysqlConnection $conn): bool {
}
}
} else {
if ($value == $in_expr->evaluate($row, $conn)) {
if (\HH\Lib\Legacy_FIXME\eq($value, $in_expr->evaluate($row, $conn))) {
return !$this->negated;
}
}
Expand Down

0 comments on commit a32bc1d

Please sign in to comment.