Skip to content

Composite foreign keys implementation - #1179

Merged
mathiasrw merged 7 commits into
AlaSQL:developfrom
Sage-ERP-X3:xtrem-1
Apr 20, 2020
Merged

mathiasrw merged 7 commits into
AlaSQL:developfrom
Sage-ERP-X3:xtrem-1

Conversation

@kiranramnath

Copy link
Copy Markdown
Contributor

Hi,

We will be needing composite foreign keys implemented for a project that is in progress. We did a fix in the handling of foreign key constraints on table creation which now includes composite foreign keys.

Prettier muddied the code but the update is in 60createtable.js line 281 to 317.

And we have written unit tests in test807.js.

Thanks,
Kiran

FYI : @bjouhier @janwvjaarsveld

@kiranramnath

Copy link
Copy Markdown
Contributor Author

FYI @mathiasrw , I added a small change, as I was not accounting for null foreign keys

@codecov-io

codecov-io commented Apr 20, 2020 •

Copy link
Copy Markdown

Codecov Report

Merging #1179 into develop will increase coverage by 0.01%.
The diff coverage is 70.64%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #1179      +/-   ##
===========================================
+ Coverage    41.60%   41.61%   +0.01%     
===========================================
  Files            2        2              
  Lines        21034    21038       +4     
  Branches      6307     6305       -2     
===========================================
+ Hits          8751     8755       +4     
  Misses       12283    12283              
Impacted Files Coverage Δ
dist/alasql.js 15.20% <12.00%> (-0.01%) ⬇️
dist/alasql.fs.js 67.71% <78.97%> (+0.02%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9eb03a8...27fa69a. Read the comment docs.

@mathiasrw

Copy link
Copy Markdown
Member

Looks great! Thank you!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants