-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
*: differentiate types for user variables (#18973)
Co-authored-by: lzmhhh123 <lzmhhh123@gmail.com>
- Loading branch information
Showing
24 changed files
with
1,176 additions
and
133 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
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
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,58 @@ | ||
[ | ||
{ | ||
"name": "TestPlanCacheWithDifferentVariableTypes", | ||
"cases": [ | ||
{ | ||
"PrepareStmt": "prepare stmt from \"select ?, ?\"", | ||
"Executes": [ | ||
{ | ||
"Vars": [{"Name": "v1", "Value": "1"}, {"Name": "v2", "Value": "2"}], | ||
"ExecuteSQL": "execute stmt using @v1, @v2" | ||
}, | ||
{ | ||
"Vars": [{"Name": "v1", "Value": "1"}, {"Name": "v2", "Value": "\"abc\""}], | ||
"ExecuteSQL": "execute stmt using @v1, @v2" | ||
}, | ||
{ | ||
"Vars": [{"Name": "v1", "Value": "10"}, {"Name": "v2", "Value": "\"cba\""}], | ||
"ExecuteSQL": "execute stmt using @v1, @v2" | ||
} | ||
] | ||
}, | ||
{ | ||
"PrepareStmt": "prepare stmt from \"select a from t1 where t1.b = ?\"", | ||
"Executes": [ | ||
{ | ||
"Vars": [{"Name": "v1", "Value": "3"}], | ||
"ExecuteSQL": "execute stmt using @v1" | ||
}, | ||
{ | ||
"Vars": [{"Name": "v1", "Value": "2"}], | ||
"ExecuteSQL": "execute stmt using @v1" | ||
}, | ||
{ | ||
"Vars": [{"Name": "v1", "Value": "\"abc\""}], | ||
"ExecuteSQL": "execute stmt using @v1" | ||
} | ||
] | ||
}, | ||
{ | ||
"PrepareStmt": "prepare stmt from \"select t1.c, t2.c from t1 join t2 on t1.b = t2.b and t1.a = t2.a where t1.b = ?\"", | ||
"Executes": [ | ||
{ | ||
"Vars": [{"Name": "v1", "Value": "1"}], | ||
"ExecuteSQL": "execute stmt using @v1" | ||
}, | ||
{ | ||
"Vars": [{"Name": "v1", "Value": "2"}], | ||
"ExecuteSQL": "execute stmt using @v1" | ||
}, | ||
{ | ||
"Vars": [{"Name": "v1", "Value": "\"abc\""}], | ||
"ExecuteSQL": "execute stmt using @v1" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] |
Oops, something went wrong.