forked from dangtv/BIRDS
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ast2sqlでソースのカラム名を伝搬させず述語のカラム名をそのまま使うようにした #46
- Loading branch information
1 parent
3b52686
commit 524f162
Showing
4 changed files
with
19 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
source a('A':int, 'B':int). | ||
source b('B':int, 'C':int). | ||
view v('A':int, 'B':int, 'C':int). | ||
-a(A, B) :- a(A, B) , tmp(A, B, C). | ||
tmp(A, B, C) :- a(A, G) , b(G, C) , B = 60 , G = 30. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
source a('A':int, 'B':int). | ||
view v('A':int, 'B':int, 'C':int). | ||
-a(A, B) :- f(B, A). | ||
f(C, D) :- a(D, C). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters