-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix tck
- Loading branch information
Showing
4 changed files
with
45 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Copyright (c) 2021 vesoft inc. All rights reserved. | ||
# | ||
# This source code is licensed under Apache 2.0 License, | ||
# attached with Common Clause Condition 1.0, found in the LICENSES directory. | ||
Feature: Variable usage | ||
|
||
Background: | ||
Given a graph with space named "nba" | ||
|
||
Scenario: disable yield $var | ||
When executing query: | ||
""" | ||
$var = yield 1;$var2 = yield 3;yield $var1 + $var2 | ||
""" | ||
Then a SyntaxError should be raised at runtime: Direct output of variable is prohibited near `$var1 + $var2' | ||
When executing query: | ||
""" | ||
$var=go from "Tim Duncan" over like yield like._dst as dst;yield $var | ||
""" | ||
Then a SyntaxError should be raised at runtime: Direct output of variable is prohibited near `$var' | ||
Then drop the used space | ||
When executing query: | ||
""" | ||
$var=go from "Tim Duncan" over like yield like._dst as dst;yield $var[0][0] | ||
""" | ||
Then a SyntaxError should be raised at runtime: Direct output of variable is prohibited near `$var[0][0]' |
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