-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add check to disallow field in on_insert() (#920)
* Add check to disallow field in on_insert() * revert some clang-tidy changes to avoid diffs * another attempt to fix formatting issues * removed unnecessary line of code * responding to PR comments
- Loading branch information
1 parent
7f482bd
commit 8a80490
Showing
5 changed files
with
32 additions
and
26 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
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
12 changes: 12 additions & 0 deletions
12
production/tools/tests/gaiat/integration_test_expected_incorrect_table_name.ruleset
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,12 @@ | ||
// RUN: not %gaiat %s -- 2>&1| FileCheck %s | ||
|
||
ruleset test109 | ||
{ | ||
on_insert(INC:incubator.max_temp) | ||
{ | ||
incubator.min_temp = incubator.max_temp; | ||
} | ||
} | ||
|
||
// GAIAPLAT-1396 | ||
// CHECK: A field may not be referenced in the 'on_insert' statement. The 'on_insert' attribute only accepts a table. |
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