Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
3b0caab5
Commit
3b0caab5
authored
Jan 19, 2007
by
msvensson@neptunus.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test's from Matthias for assigning one variable from another using let
parent
b1a9115d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
0 deletions
+39
-0
mysql-test/r/mysqltest.result
mysql-test/r/mysqltest.result
+9
-0
mysql-test/t/mysqltest.test
mysql-test/t/mysqltest.test
+30
-0
No files found.
mysql-test/r/mysqltest.result
View file @
3b0caab5
...
@@ -269,6 +269,15 @@ mysqltest: At line 1: Missing assignment operator in let
...
@@ -269,6 +269,15 @@ mysqltest: At line 1: Missing assignment operator in let
1
1
# Execute: echo $success ;
# Execute: echo $success ;
1
1
# Check if let $B = $A is an assignment per value.
let $A = initial value of A;
let $B = initial value of B;
let $B = $A
# Content of $A is: initial value of B
let $A = changed value of A;
# Content of $B is: initial value of B
let $B = changed value of B;
# Content of $A is: changed value of A
mysqltest: At line 1: Missing required argument 'filename' to command 'source'
mysqltest: At line 1: Missing required argument 'filename' to command 'source'
mysqltest: At line 1: Could not open file ./non_existingFile
mysqltest: At line 1: Could not open file ./non_existingFile
mysqltest: In included file "MYSQLTEST_VARDIR/tmp/recursive.sql": At line 1: Source directives are nesting too deep
mysqltest: In included file "MYSQLTEST_VARDIR/tmp/recursive.sql": At line 1: Source directives are nesting too deep
...
...
mysql-test/t/mysqltest.test
View file @
3b0caab5
...
@@ -688,6 +688,36 @@ echo # <whatever> success: $success ;
...
@@ -688,6 +688,36 @@ echo # <whatever> success: $success ;
--
echo
# Execute: echo \$success ;
--
echo
# Execute: echo \$success ;
echo
$success
;
echo
$success
;
# ----------------------------------------------------------------------------
# Test to assign let from variable
# let $<var_name>=$<var_name>;
# ----------------------------------------------------------------------------
--
echo
# Check if let \$B = \$A is an assignment per value.
# Basic preparations:
--
echo
let
\
$A
=
initial
value
of
A
;
let
$A
=
initial
value
of
A
;
# --echo # Content of \$A is: $A
--
echo
let
\
$B
=
initial
value
of
B
;
let
$B
=
initial
value
of
B
;
# --echo # Content of \$B is: $B
# Assign $B to $A:
--
echo
let
\
$B
=
\
$A
let
$A
=
$B
;
--
echo
# Content of \$A is: $A
# Changes of $B must NOT affect $A and Changes of $A must NOT affect $B !
--
echo
let
\
$A
=
changed
value
of
A
;
let
$A
=
changed
value
of
A
;
--
echo
# Content of \$B is: $B
--
echo
let
\
$B
=
changed
value
of
B
;
let
$B
=
changed
value
of
B
;
--
echo
# Content of \$A is: $A
# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
# Test to assign let from query
# Test to assign let from query
# let $<var_name>=`<query>`;
# let $<var_name>=`<query>`;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment