Fixed behavior where a mixed required status in an include would not honor given required's (#6170)
* Fixed behavior where a mixed required status in an include would not be respected Refactored include handling of abstract query-generator into seperate functions for through or non-thorugh joins Join generating functions now return join in parts so that it can be rearranged by the parent in even of a `required` mismatch Internal table names that are a combonation for multiple tables are now seperated by underscores instead of periods to avoid bad behavior inside parentheses Multiple fixes to tests to accommodate changing behavior * Fixes to PR Fixed spelling of "separate" generateInclude now returns new attributes instead of adding them to arrays passed in consolidated topLevel options into one object * Removed line ketp in merge. Whoops! * Separate fix, shoulkd fix failing psql tests. * Removed errant logging from tests, added more nested include testing. * Replaced '_' sperator with '->' in 'internal' selections. * fixed wrong name in abstract query-generator. * translate literal keys and in select where to new internal -> connectors. * Replaced needlessly verbose ternary operator in abstract query-generator. * Fixed foramtting and nameing, added fix to changelog. * Fixed variable shadowing issue from rename. * Fixed sql unit test from master. * Fixed Postgres unit test. * added .eslintrs.json back to git. * Fixed postgres identifier quoting issues. * Added line about bc breaks to changlog. * Removed lines from development, tightened spacing to match style.
Showing
with
965 additions
and
765 deletions
lib/dialects/abstract/query-generator.js
100644 → 100755
lib/dialects/postgres/query-generator.js
100644 → 100755
test/integration/include.test.js
100644 → 100755
test/unit/sql/generateJoin.test.js
0 → 100755
test/unit/sql/select.test.js
100644 → 100755
test/unit/sql/where.test.js
100644 → 100755
-
Please register or sign in to post a comment